Skip to content

Commit 4486245

Browse files
committed
ENH: Add conditional logic for ITK dependency based on USE_SYSTEM_ITK
1 parent b50370f commit 4486245

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

SuperBuild/External_RunExamples.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ if(DEFINED ${extProjName}_DIR AND NOT EXISTS ${${extProjName}_DIR})
3131
endif()
3232

3333
# Set dependency list
34-
set(${proj}_DEPENDENCIES ITK)
34+
if( NOT USE_SYSTEM_ITK)
35+
set(${proj}_DEPENDENCIES ITK)
36+
else()
37+
set(${proj}_DEPENDENCIES "")
38+
endif()
39+
3540
# Include dependent projects if any
3641
SlicerMacroCheckExternalProjectDependency(${proj})
3742

0 commit comments

Comments
 (0)