diff options
author | Brad King <brad.king@kitware.com> | 2020-01-13 15:20:43 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-13 15:20:59 (GMT) |
commit | df1fad32adff9fd88ea8967b9dd346eb6231e36d (patch) | |
tree | 97ac85d6618ace1225d96c936f60fd885adf5be5 /Modules/FindPython | |
parent | e4c07116027e7c82fab658b11a630492052f3761 (diff) | |
parent | fcde42751a6b33b57efc994347836258028fcadf (diff) | |
download | CMake-df1fad32adff9fd88ea8967b9dd346eb6231e36d.zip CMake-df1fad32adff9fd88ea8967b9dd346eb6231e36d.tar.gz CMake-df1fad32adff9fd88ea8967b9dd346eb6231e36d.tar.bz2 |
Merge topic 'macOS-Xcode-11-frameworks'
fcde42751a FindPython: ensure new Xcode framework for Python3 is detected
dd7b741b81 macOS: Add support for new Xcode 11 frameworks directory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4198
Diffstat (limited to 'Modules/FindPython')
-rw-r--r-- | Modules/FindPython/Support.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index 086b229..7c20512 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() |