Commit
3cf6c53 was incorrect. FCGI_INCLUDE_DIR doesn't need to be
set in src/rgw/CMakeLists.txt, but it does need to be set for the
rgw_a target in src/CMakeLists.txt, as well as for the
ceph_test_librgw_file and ceph_test_librgw_file_nfsns targets in
src/test/CMakeLists.txt. I can only assume that I must not have
done a completely clean rebuild at some point when testing a
reworked version of the earlier commit :-/
This is only a problem for distros that keep the FCGI headers in
/usr/include/fastcgi/ (e.g.: SUSE).
This commit also removes a redundant include of <fcgiapp.h>
Signed-off-by: Tim Serong <tserong@suse.com>
endif(HAVE_SSL)
add_library(rgw_a STATIC ${rgw_a_srcs})
+ target_include_directories(rgw_a PUBLIC ${FCGI_INCLUDE_DIR})
target_link_libraries(rgw_a librados cls_rgw_client cls_refcount_client
cls_log_client cls_statelog_client cls_timeindex_client cls_version_client
cls_replica_log_client cls_user_client curl global expat ${OPENLDAP_LIBS})
-include_directories(${FCGI_INCLUDE_DIR})
-
add_executable(ceph_rgw_jsonparser
rgw_jsonparser.cc
rgw_common.cc
#include "rgw_fcgi.h"
#include "acconfig.h"
-#include <fcgiapp.h>
int RGWFCGX::write_data(const char *buf, int len)
{
)
set_target_properties(ceph_test_librgw_file PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
+target_include_directories(ceph_test_librgw_file PRIVATE ${FCGI_INCLUDE_DIR})
target_link_libraries(ceph_test_librgw_file
rgw
librados
)
set_target_properties(ceph_test_librgw_file_nfsns PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
+target_include_directories(ceph_test_librgw_file_nfsns PRIVATE ${FCGI_INCLUDE_DIR})
target_link_libraries(ceph_test_librgw_file_nfsns
rgw
librados