summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython/Support.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-10 12:43:42 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-01-10 12:48:39 (GMT)
commitfcde42751a6b33b57efc994347836258028fcadf (patch)
tree72fe6d4a116b594cf0526cbde407d51ea705214b /Modules/FindPython/Support.cmake
parentdd7b741b811ad93ed8c9440c105bc1d22759c0c7 (diff)
downloadCMake-fcde42751a6b33b57efc994347836258028fcadf.zip
CMake-fcde42751a6b33b57efc994347836258028fcadf.tar.gz
CMake-fcde42751a6b33b57efc994347836258028fcadf.tar.bz2
FindPython: ensure new Xcode framework for Python3 is detected
Diffstat (limited to 'Modules/FindPython/Support.cmake')
-rw-r--r--Modules/FindPython/Support.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
index 1b5a9db..3b15354 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -62,6 +62,9 @@ macro (_PYTHON_FIND_FRAMEWORKS)
${CMAKE_SYSTEM_FRAMEWORK_PATH})
list (REMOVE_DUPLICATES _pff_frameworks)
foreach (_pff_framework IN LISTS _pff_frameworks)
+ if (EXISTS ${_pff_framework}/Python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR}.framework)
+ list (APPEND ${_PYTHON_PREFIX}_FRAMEWORKS ${_pff_framework}/Python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR}.framework)
+ endif()
if (EXISTS ${_pff_framework}/Python.framework)
list (APPEND ${_PYTHON_PREFIX}_FRAMEWORKS ${_pff_framework}/Python.framework)
endif()