Skip to content

Commit fe5545f

Browse files
authored
Merge pull request #2137 from blowekamp/slicer_backport
Backport patches made in Slicer fork
2 parents efdc5d3 + c9f69a8 commit fe5545f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

SuperBuild/SuperBuild.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,15 @@ foreach (_varName ${_varNames})
414414
_varName MATCHES "^DOXYGEN_"
415415
OR
416416
_varName MATCHES "^CMAKE_DISABLE_FIND_PACKAGE_"
417+
OR
418+
_varName MATCHES "^Python\_(ROOT\_DIR|INCLUDE\_DIR|LIBRARY|LIBRARY\_DEBUG|LIBRARY\_RELEASE|EXECUTABLE)$"
419+
# Support CMake < 3.24 by explicitly passing _Python_VERSION variables to workaround issue fixed
420+
# in kitware/cmake@ece3bedbf (FindPython: fix error on multiple queries with different COMPONENTS)
421+
# See https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7410 for more details
422+
OR
423+
(_varName MATCHES "^\_Python\_VERSION$" AND CMAKE_VERSION VERSION_LESS "3.24")
424+
OR
425+
(_varName MATCHES "^\_Python\_VERSION\_(MAJOR|MINOR|PATCH)$" AND CMAKE_VERSION VERSION_LESS "3.24")
417426
)
418427
message( STATUS "Passing variable \"${_varName}=${${_varName}}\" to SimpleITK external project.")
419428
list(APPEND SimpleITK_VARS ${_varName})

0 commit comments

Comments
 (0)