diff options
author | Brad King <brad.king@kitware.com> | 2012-09-21 12:53:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-21 12:53:42 (GMT) |
commit | a0a0877a1eb111d37ac4766a368206e73458489e (patch) | |
tree | df5ed0dc179b7391972576c1c21ed70d87efbf22 /Modules/Platform/Darwin-Clang.cmake | |
parent | 33a60e6bd148479c63734286417f582444bf36b6 (diff) | |
download | CMake-a0a0877a1eb111d37ac4766a368206e73458489e.zip CMake-a0a0877a1eb111d37ac4766a368206e73458489e.tar.gz CMake-a0a0877a1eb111d37ac4766a368206e73458489e.tar.bz2 |
OS X: Always generate -isysroot if any SDK is in use
Drop the last use of CMAKE_OSX_SYSROOT_DEFAULT. Replace internal
platform variable CMAKE_${lang}_HAS_ISYSROOT with a more general
CMAKE_${lang}_SYSROOT_FLAG variable. If the -isysroot flag exists and
CMAKE_OSX_SYSROOT points to an SDK (not "/") then always add it to
compiler command lines. This is already done in the Xcode IDE.
Diffstat (limited to 'Modules/Platform/Darwin-Clang.cmake')
-rw-r--r-- | Modules/Platform/Darwin-Clang.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin-Clang.cmake b/Modules/Platform/Darwin-Clang.cmake index 46f06f7..de7a856 100644 --- a/Modules/Platform/Darwin-Clang.cmake +++ b/Modules/Platform/Darwin-Clang.cmake @@ -21,6 +21,6 @@ set(__DARWIN_COMPILER_CLANG 1) macro(__darwin_compiler_clang lang) set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") + set(CMAKE_${lang}_SYSROOT_FLAG "-isysroot") set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") - set(CMAKE_${lang}_HAS_ISYSROOT 1) endmacro() |