File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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} )
You can’t perform that action at this time.
0 commit comments