Skip to content

Commit 58830cf

Browse files
committed
COMP: Add missing link dependancy for ITKExpat
Previous transitive contamination of the library linkage would cause nearly all libraries to depend on each other. As we fix this in ITK proper (work by Zach Williamson), we need to set the COMPONENTS to include the items that we use. In this example, we need ITKExpat library functions, so including ITKIOExpat no longer transatively includes ITKExpat (third party) publicly to child projects. This means that it must be included directly. NOTE, Had we used only ITKIOExpat functions, this would not be necessary.
1 parent de4ece4 commit 58830cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ModuleDescriptionParser/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ endif()
3636
set(${PROJECT_NAME}_ITK_COMPONENTS
3737
ITKCommon# For itksys
3838
ITKIOXML # For ITKEXPAT
39+
ITKExpat # For Expat library
3940
)
4041
find_package(ITK 4.3 COMPONENTS ${${PROJECT_NAME}_ITK_COMPONENTS} REQUIRED)
4142
include(${ITK_USE_FILE})

0 commit comments

Comments
 (0)