mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06: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:
@@ -3,3 +3,6 @@ include(RunCMake)
|
||||
run_cmake(XcodeFileType)
|
||||
run_cmake(XcodeAttributeGenex)
|
||||
run_cmake(XcodeAttributeGenexError)
|
||||
if (NOT XCODE_VERSION VERSION_LESS 6)
|
||||
run_cmake(XcodePlatformFrameworks)
|
||||
endif()
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
enable_language(C)
|
||||
|
||||
find_library(XCTEST_LIBRARY XCTest)
|
||||
if(NOT XCTEST_LIBRARY)
|
||||
message(FATAL_ERROR "XCTest Framework not found.")
|
||||
endif()
|
||||
Reference in New Issue
Block a user