diff options
author | Brad King <brad.king@kitware.com> | 2013-09-27 14:13:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-09-27 14:18:46 (GMT) |
commit | 1fce189e536b4ab2385ff25c9e04baf97065c2b0 (patch) | |
tree | fd7eeb30b036d49d8a77304dae3a59fc9befcb2e /Modules | |
parent | 6ed8504ea5633932e5db3a5a70853a763df7af50 (diff) | |
download | CMake-1fce189e536b4ab2385ff25c9e04baf97065c2b0.zip CMake-1fce189e536b4ab2385ff25c9e04baf97065c2b0.tar.gz CMake-1fce189e536b4ab2385ff25c9e04baf97065c2b0.tar.bz2 |
OS X: Search system SDKs for frameworks
In Modules/Platform/Darwin.cmake set CMAKE_SYSTEM_FRAMEWORK_PATH to
include framework directories from inside the system SDK corresponding
to CMAKE_OSX_SYSROOT.
Suggested-by: Sean McBride <sean@rogue-research.com>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Darwin.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index 0930880..72844b5 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -294,6 +294,15 @@ endif() # set up the default search directories for frameworks set(CMAKE_SYSTEM_FRAMEWORK_PATH ~/Library/Frameworks + ) +if(_CMAKE_OSX_SYSROOT_PATH) + list(APPEND CMAKE_SYSTEM_FRAMEWORK_PATH + ${_CMAKE_OSX_SYSROOT_PATH}/Library/Frameworks + ${_CMAKE_OSX_SYSROOT_PATH}/Network/Library/Frameworks + ${_CMAKE_OSX_SYSROOT_PATH}/System/Library/Frameworks + ) +endif() +list(APPEND CMAKE_SYSTEM_FRAMEWORK_PATH /Library/Frameworks /Network/Library/Frameworks /System/Library/Frameworks) |