summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-13 15:20:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-01-13 15:20:58 (GMT)
commit01b43e85cfece674e26069bf55903fb7521bad38 (patch)
tree753004c32311f033adcc588b845d0a5423a3c311 /Modules/Platform
parent9fa8b7d5dda04b94fe04e63626e393fd6bf0353e (diff)
parentfcde42751a6b33b57efc994347836258028fcadf (diff)
downloadCMake-01b43e85cfece674e26069bf55903fb7521bad38.zip
CMake-01b43e85cfece674e26069bf55903fb7521bad38.tar.gz
CMake-01b43e85cfece674e26069bf55903fb7521bad38.tar.bz2
Merge topic 'macOS-Xcode-11-frameworks' into release-3.16
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/Platform')
-rw-r--r--Modules/Platform/Darwin.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index 1482d76..e5a57b5 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -157,6 +157,10 @@ if(_CMAKE_OSX_SYSROOT_PATH)
endif()
endforeach()
endif()
+if (OSX_DEVELOPER_ROOT AND EXISTS "${OSX_DEVELOPER_ROOT}/Library/Frameworks")
+ list(APPEND CMAKE_SYSTEM_FRAMEWORK_PATH
+ ${OSX_DEVELOPER_ROOT}/Library/Frameworks)
+endif()
list(APPEND CMAKE_SYSTEM_FRAMEWORK_PATH
/Library/Frameworks
/Network/Library/Frameworks