Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Add FCGI_INCLUDE_DIR to include_directories for rgw
rgw_fcgi.{cc,h} includes either "fastcgi/fcgiapp.h" or "fcgiapp.h", depending on whether FASTCGI_INCLUDE_DIR is set. That define is set by autotools, but cmake builds work a little differently -- in the cmake case, FCGI_INCLUDE_DIR is set by Findfcgi.cmake, provided it can find the fastcgi headers *somewhere*. This means the cmake build breaks on SUSE distros (and presumably others) which use "fastcgi/fcgiapp.h", because FASTCGI_INCLUDE_DIR isn't set, so it tries to include "fcgiapp.h", and fails. This change adds FCGI_INCLUDE_DIR to the include directories, and tries to #include <fcgiapp.h> if FASTCGI_INCLUDE_DIR is not set, which should work for both cmake and autotools builds. (It would probably be cleanest to fix autotools to behave like cmake, then the #ifdef/#else stuff can be dropped, and we could just always include <fcgiapp.h>) Signed-off-by: Tim Serong <[email protected]>
- Loading branch information