BUG: Do not specify GTest targets as LIBRARIES for ITKGoogleTest#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. |
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 |
0b46c4e to
3298906
Compare
hjmjohnson
left a comment
There was a problem hiding this comment.
This seems reasonable to me.
|
@blowekamp should this be integrated? |
The ITKGoogleTest_LIBRARIES variable must not specify the GoogleTest targets. This variable is exported for installation, but the targets are not. This may results in users of an installed ITK which use ITK_LIBRARIES to attempt to link to non-existing GTest Targets.
3298906 to
8dd7198
Compare
|
This PR has been updated with a better solution. P.S. This solution could be applied to release-5.4 if needed. |
May address: #303
PR Checklist
Refer to the ITK Software Guide for
further development details if necessary.