summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-10 12:32:50 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-01-10 12:48:39 (GMT)
commitdd7b741b811ad93ed8c9440c105bc1d22759c0c7 (patch)
treed0b6a51b6d2950531e7660c3505bcbf1fc4de8f4 /Modules/Platform
parent68537b890ba155632b3679dc77c0e04148bf18d5 (diff)
downloadCMake-dd7b741b811ad93ed8c9440c105bc1d22759c0c7.zip
CMake-dd7b741b811ad93ed8c9440c105bc1d22759c0c7.tar.gz
CMake-dd7b741b811ad93ed8c9440c105bc1d22759c0c7.tar.bz2
macOS: Add support for new Xcode 11 frameworks directory
Update CMAKE_SYSTEM_FRAMEWORK_PATH with new Xcode 11 frameworks directory
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