Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Really add FCGI_INCLUDE_DIR to include_directories for rgw #10139

Merged
merged 1 commit into from Jul 7, 2016

Conversation

tserong
Copy link
Contributor

@tserong tserong commented Jul 5, 2016

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

@tserong
Copy link
Contributor Author

tserong commented Jul 5, 2016

@theanalyst can you please test to double-check I haven't missed anything? (For reference, the previous PR with the incorrect fix was #9983)

@theanalyst
Copy link
Member

@tserong Thanks works now, lgtm

@@ -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 PUBLIC ${FCGI_INCLUDE_DIR})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, PRIVATE would suffice here. as no need to populate ceph_test_librgw_file's INCLUDE_DIRECTORIES to other targets.

@tchaikov
Copy link
Contributor

tchaikov commented Jul 7, 2016

modulo the nit, lgtm.

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>
@tserong tserong force-pushed the wip-cmake-really-fix-fcgi-include-dir branch from a5d48b5 to 234b066 Compare July 7, 2016 07:01
@tserong
Copy link
Contributor Author

tserong commented Jul 7, 2016

De-nitted :-)

@@ -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})
Copy link
Contributor

@tchaikov tchaikov Jul 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tserong, have you tried to change PUBLIC here to PRIVATE? if it fails the build, we should have PUBLIC for sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just did a rebuild with that line changed from PUBLIC to PRIVATE, and it failed, so I think that one needs to remain as-is.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tserong thanks for testing!

@tchaikov
Copy link
Contributor

tchaikov commented Jul 7, 2016

lgtm.

@tchaikov tchaikov merged commit 0250214 into ceph:master Jul 7, 2016
@tchaikov
Copy link
Contributor

tchaikov commented Jul 7, 2016

@theanalyst very sorry, i forgot to add you as the reviewer in the commit message. =(

@tserong tserong deleted the wip-cmake-really-fix-fcgi-include-dir branch July 7, 2016 14:10
@theanalyst
Copy link
Member

@tchaikov no problems :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants