Skip to content

Commit dd6c08a

Browse files
committed
Fix intra-external project dependencies with update step
With CMake 3.6.2, the empty patch step is run before external project dependencies are satisfied. With CMake 3.2 the ExternalProject_Add_StepDependencies method was added to allow the first step in an external project, the download step, to have a dependencies. This patch addressed build failures during the "SimpleITK-python-update" step.
1 parent 959093a commit dd6c08a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ if(SimpleITKPythonPackage_SUPERBUILD)
145145
DEPENDS SimpleITK-download
146146
)
147147

148+
ExternalProject_Add_StepDependencies(SimpleITK-superbuild download SimpleITK-download)
149+
148150
set(SimpleITK_DIR ${SimpleITK_SUPERBUILD_DIR}/SimpleITK-build)
149151
if(WIN32)
150152
set(SWIG_TARGET_VERSION "3.0.10")
@@ -230,6 +232,8 @@ if(SimpleITKPythonPackage_SUPERBUILD)
230232

231233
message(STATUS "SuperBuild - SimpleITK_PYTHON_DIR: ${SimpleITK_PYTHON_DIR}")
232234

235+
ExternalProject_Add_StepDependencies(SimpleITK-python download SimpleITK-download)
236+
233237

234238
#-----------------------------------------------------------------------------
235239
# SimpleITKPythonPackage: This project adds install rules for the "Runtime" component

0 commit comments

Comments
 (0)