Skip to content

Commit

Permalink
Need to think a little more about how to manage this - if ENABLE_ITK …
Browse files Browse the repository at this point in the history
…gets set to off, that sticks even if higher level settings change...
  • Loading branch information
starseeker committed Mar 27, 2024
1 parent b30bd9f commit af13113
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions itk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
# enough that it won't be a significant issue, since there appears to be
# only so much we can do to sort it out...

if (ENABLE_ITCL AND NOT DEFINED ENABLE_ITK AND NOT DEFINED DISABLE_TCL)
if (ENABLE_ITCL AND NOT DEFINED ENABLE_ITK AND NOT DISABLE_TCL)
set(ENABLE_ITK ON)
endif (ENABLE_ITCL AND NOT DEFINED ENABLE_ITK AND NOT DEFINED DISABLE_TCL)
endif (ENABLE_ITCL AND NOT DEFINED ENABLE_ITK AND NOT DISABLE_TCL)

if (NOT ENABLE_ITK AND NOT DEFINED DISABLE_ITCL AND NOT DEFINED DISABLE_TCL)
if (NOT ENABLE_ITK AND NOT DISABLE_ITCL AND NOT DISABLE_TCL)
find_library(ITK_SYS_LIBRARY NAMES itk3)

if (NOT ITK_SYS_LIBRARY AND NOT DEFINED ENABLE_ITK)
set(ENABLE_ITK "ON" CACHE BOOL "Enable itk build")
endif (NOT ITK_SYS_LIBRARY AND NOT DEFINED ENABLE_ITK)

endif (NOT ENABLE_ITK AND NOT DEFINED DISABLE_ITCL AND NOT DEFINED DISABLE_TCL)
endif (NOT ENABLE_ITK AND NOT DISABLE_ITCL AND NOT DISABLE_TCL)
set(ENABLE_ITK "${ENABLE_ITK}" CACHE BOOL "Enable itk build")

if (ENABLE_ITK)
Expand Down

0 comments on commit af13113

Please sign in to comment.