macOS: Add support for new Xcode 11 frameworks directory

Update CMAKE_SYSTEM_FRAMEWORK_PATH with new Xcode 11 frameworks directory
This commit is contained in:
Marc Chevrier 2020-01-10 13:32:50 +01:00
parent 68537b890b
commit dd7b741b81

View File

@ -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