-
-
Notifications
You must be signed in to change notification settings - Fork 674
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
BUG: Include find GTest CMake code when installed #4966
base: master
Are you sure you want to change the base?
BUG: Include find GTest CMake code when installed #4966
Conversation
The GTest libraries should not be a build time dependency of an installed ITK, but not sure how to disable the GTest libraries in an installed ITK. |
@@ -10,6 +10,10 @@ if(NOT ITK_BINARY_DIR) | |||
set(GTEST_ROOT \"${GTEST_ROOT}\") | |||
find_package(GTest REQUIRED) | |||
endif() | |||
") | |||
set(ITKGoogleTest_EXPORT_CODE_INSTALL " | |||
set(GTEST_ROOT \"${GTEST_ROOT}\") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The install tree is relocatable so we shouldn't set GTEST_ROOT
since GTest might not be in the same place after deployment.
One needs to make sure nothing depends on them publicly. Then they shouldn't need to be installed. |
In all "itk-module.cmake" files, if used, it is under "TEST_DEPENDS". |
Off the top of my head I don't see why |
Even if GTest is not an exported public or private dependency it may still be used by application if all the ITK modules are selected for use.
0b46c4e
to
3298906
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me.
May address: #303
PR Checklist
Refer to the ITK Software Guide for
further development details if necessary.