Skip to content

Commit 3742c3d

Browse files
committed
ENH: Enable specification of ITK_GIT_TAG in the superbuild
This will facilitate Nightly builds / testing against ITK master. Change-Id: I3eaecd39e530e0c7ad34d810bfaf33636a06bf94
1 parent 262e9b0 commit 3742c3d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

CMake/CTestCustom.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION
293293
".*OpenCV.*"
294294
".*VTK.*"
295295
".*has no symbols."
296-
"ITKv4"
296+
"ITK"
297297
"SlicerExecutionModel"
298298
"SimpleITK"
299299

@@ -340,7 +340,7 @@ set(CTEST_CUSTOM_ERROR_EXCEPTION
340340
".*OpenCV.*"
341341
".*VTK.*"
342342
".*has no symbols."
343-
"ITKv4"
343+
"ITK"
344344
"SlicerExecutionModel"
345345
"SimpleITK"
346346

SuperBuild.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ option(USE_SYSTEM_ITK "Build using an externally defined version of ITK" OFF)
9494

9595

9696
## for i in SuperBuild/*; do echo $i |sed 's/.*External_\([a-zA-Z]*\).*/\1/g'|fgrep -v cmake|fgrep -v Template; done|sort -u
97-
set(${PRIMARY_PROJECT_NAME}_DEPENDENCIES ITKv4)
97+
set(${PRIMARY_PROJECT_NAME}_DEPENDENCIES ITK)
9898

9999
#-----------------------------------------------------------------------------
100100
# Define Superbuild global variables
@@ -166,8 +166,8 @@ list(APPEND ${CMAKE_PROJECT_NAME}_SUPERBUILD_EP_VARS
166166
)
167167

168168
if( NOT ${USE_SYSTEM_ITK} )
169-
set(ITK_SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/ITKv4 )
170-
set(ITK_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/ITKv4-build )
169+
set(ITK_SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/ITK )
170+
set(ITK_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/ITK-build )
171171
else()
172172
find_path(ITK_BINARY_DIR UseITK.cmake
173173
../ITK-build

SuperBuild/External_ITKv4.cmake renamed to SuperBuild/External_ITK.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ProjectDependancyPush(CACHED_proj ${proj})
1818
# even if other External_${ExtProjName}.cmake files are sourced by
1919
# SlicerMacroCheckExternalProjectDependency
2020
set(extProjName ITK) #The find_package known name
21-
set(proj ITKv4) #This local name
21+
set(proj ITK) #This local name
2222
set(${extProjName}_REQUIRED_VERSION 4) #If a required version is necessary, then set this, else leave blank
2323

2424
#if(${USE_SYSTEM_${extProjName}})
@@ -104,7 +104,9 @@ if(NOT ( DEFINED "${extProjName}_DIR" OR ( DEFINED "USE_SYSTEM_${extProjName}" A
104104
### --- End Project specific additions
105105
set(${proj}_REPOSITORY ${git_protocol}://itk.org/ITK.git)
106106
# ITK release 2017-09-12
107-
set(${proj}_GIT_TAG "v4.12.2")
107+
if("${${proj}_GIT_TAG}" STREQUAL "")
108+
set(${proj}_GIT_TAG "v4.12.2")
109+
endif()
108110

109111
ExternalProject_Add(${proj}
110112
GIT_REPOSITORY ${${proj}_REPOSITORY}

0 commit comments

Comments
 (0)