summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-10 13:32:50 +0100
committerMarc Chevrier <marc.chevrier@gmail.com>2020-01-10 13:48:39 +0100
commitdd7b741b811ad93ed8c9440c105bc1d22759c0c7 (patch)
treed0b6a51b6d2950531e7660c3505bcbf1fc4de8f4
parent68537b890ba155632b3679dc77c0e04148bf18d5 (diff)
downloadcmake-dd7b741b811ad93ed8c9440c105bc1d22759c0c7.tar.gz
macOS: Add support for new Xcode 11 frameworks directory
Update CMAKE_SYSTEM_FRAMEWORK_PATH with new Xcode 11 frameworks directory
-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 1482d76ae6..e5a57b59fc 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