Skip to content

Commit

Permalink
cmake: Really add FCGI_INCLUDE_DIR to include_directories for rgw
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tserong committed Jul 7, 2016
1 parent 0c13676 commit 234b066
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,7 @@ if(${WITH_RADOSGW})
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})
Expand Down
2 changes: 0 additions & 2 deletions src/rgw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include_directories(${FCGI_INCLUDE_DIR})

add_executable(ceph_rgw_jsonparser
rgw_jsonparser.cc
rgw_common.cc
Expand Down
1 change: 0 additions & 1 deletion src/rgw/rgw_fcgi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "rgw_fcgi.h"

#include "acconfig.h"
#include <fcgiapp.h>

int RGWFCGX::write_data(const char *buf, int len)
{
Expand Down
2 changes: 2 additions & 0 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ add_executable(ceph_test_librgw_file
)
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
Expand Down Expand Up @@ -293,6 +294,7 @@ add_executable(ceph_test_librgw_file_nfsns
)
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
Expand Down

0 comments on commit 234b066

Please sign in to comment.