mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
OS X: Add platform-specific Frameworks search path
Otherwise find_library is unable to lookup the XCTest framework which is not located in the SDK serach path: In the 10.10 SDK the SDK frameworks are located here: $DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks whereas the Platform SDKs are located here: $DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/Library/Frameworks Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
This commit is contained in:
@@ -166,6 +166,13 @@ if(_CMAKE_OSX_SYSROOT_PATH)
|
||||
${_CMAKE_OSX_SYSROOT_PATH}/Network/Library/Frameworks
|
||||
${_CMAKE_OSX_SYSROOT_PATH}/System/Library/Frameworks
|
||||
)
|
||||
# add platform developer framework path if exists
|
||||
get_filename_component(_CMAKE_OSX_PLATFORM_FRAMEWORK_PATH
|
||||
${_CMAKE_OSX_SYSROOT_PATH}/../../Library/Frameworks ABSOLUTE)
|
||||
if(IS_DIRECTORY ${_CMAKE_OSX_PLATFORM_FRAMEWORK_PATH})
|
||||
list(APPEND CMAKE_SYSTEM_FRAMEWORK_PATH
|
||||
${_CMAKE_OSX_PLATFORM_FRAMEWORK_PATH})
|
||||
endif()
|
||||
endif()
|
||||
list(APPEND CMAKE_SYSTEM_FRAMEWORK_PATH
|
||||
/Library/Frameworks
|
||||
|
||||
Reference in New Issue
Block a user