summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-24 14:12:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-24 14:12:45 (GMT)
commit41a16f07c3b57e05927ba7706a4e3cebd7768ddf (patch)
tree821d5deabff95e004b9feccaec12ad49461ab2ac /Modules
parent13f9f848defa75f7d728050b4d99d44b194642b2 (diff)
parent0ee2a004e70e2d49423f5b4b393896258e8ab688 (diff)
downloadCMake-41a16f07c3b57e05927ba7706a4e3cebd7768ddf.zip
CMake-41a16f07c3b57e05927ba7706a4e3cebd7768ddf.tar.gz
CMake-41a16f07c3b57e05927ba7706a4e3cebd7768ddf.tar.bz2
Merge topic 'osx-framework-search-platform-SDKs'
0ee2a004 OS X: Add platform-specific Frameworks search path
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Darwin.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index e5c5f36..b912d98 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -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