Skip to content

Commit 2455353

Browse files
jcfrthewtex
authored andcommitted
cmake: Use "ITK_BINARY_DIR" variable instead of "ITK_DIR"
This commit removes unneeded ITK_DIR ivar and use ITK_BINARY_DIR cache variable instead.
1 parent 5f2050d commit 2455353

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ if(ITKPythonPackage_SUPERBUILD)
185185
)
186186
ExternalProject_Add_StepDependencies(ITK download ITK-source-download)
187187

188-
set(ITK_DIR "${ITK_BINARY_DIR}")
189-
190-
message(STATUS "SuperBuild - ITK_DIR: ${ITK_DIR}")
191188
message(STATUS "SuperBuild - ITK[OK]")
192189

193190
#-----------------------------------------------------------------------------
@@ -203,7 +200,7 @@ if(ITKPythonPackage_SUPERBUILD)
203200
UPDATE_COMMAND ""
204201
CMAKE_CACHE_ARGS
205202
-DITKPythonPackage_SUPERBUILD:BOOL=0
206-
-DITK_DIR:PATH=${ITK_DIR}
203+
-DITK_BINARY_DIR:PATH=${ITK_BINARY_DIR}
207204
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
208205
${ep_common_cmake_cache_args}
209206
USES_TERMINAL_CONFIGURE 1
@@ -223,7 +220,7 @@ else()
223220
unset(CMAKE_INSTALL_COMPONENT)
224221
set(COMPONENT \"PythonWheelRuntimeLibraries\")
225222
set(CMAKE_INSTALL_DO_STRIP 1)
226-
include\(\"${ITK_DIR}/cmake_install.cmake\")
223+
include\(\"${ITK_BINARY_DIR}/cmake_install.cmake\")
227224
unset(CMAKE_INSTALL_COMPONENT)
228225
")
229226

0 commit comments

Comments
 (0)