Skip to content

Commit 5a00392

Browse files
committed
COMP: Resolve search for ITKVtkGlue status
The variable names for ITKVtkGlue are different for builds inside of ITK and superbuilds outside of ITK.
1 parent d703574 commit 5a00392

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ find_package(ITK REQUIRED)
88
include(${ITK_USE_FILE})
99

1010
# To avoid linker issues.
11-
if(ITKVtkGlue_LOADED)
11+
# Module_ITKVtkGlue is true when building inside ITK
12+
# ITKVtkGlue_LOADED is true when SuperBuild ITKEx stand-alone
13+
if(Module_ITKVtkGlue OR ITKVtkGlue_LOADED)
1214
find_package(VTK REQUIRED)
1315
include(${VTK_USE_FILE})
1416
else()

0 commit comments

Comments
 (0)