diff options
author | Brad King <brad.king@kitware.com> | 2012-11-06 19:13:22 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-11-06 19:13:22 (GMT) |
commit | a574752f8471dbbc7701afa37c895538a201082c (patch) | |
tree | 61c367ba2bcb676374461485d37fb198a232562a /Modules | |
parent | 688631a43b3eb08d00636ac716ca4657f67eef4a (diff) | |
parent | 15f5764e2ca9cd10fca7f5bb44f631c7c449352e (diff) | |
download | CMake-a574752f8471dbbc7701afa37c895538a201082c.zip CMake-a574752f8471dbbc7701afa37c895538a201082c.tar.gz CMake-a574752f8471dbbc7701afa37c895538a201082c.tar.bz2 |
Merge topic 'osx-sysroot-cleanup'
15f5764 OS X: Fix default CMAKE_OSX_SYSROOT with deployment target
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Darwin.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index a401762..4e7e99c 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -107,6 +107,7 @@ elseif(NOT "x$ENV{SDKROOT}" STREQUAL "x" AND # Use the value of SDKROOT from the environment. set(_CMAKE_OSX_SYSROOT_DEFAULT "$ENV{SDKROOT}") elseif("${CMAKE_GENERATOR}" MATCHES Xcode + OR CMAKE_OSX_DEPLOYMENT_TARGET OR CMAKE_OSX_ARCHITECTURES MATCHES "[^;]" OR NOT EXISTS "/usr/include/sys/types.h") # Find installed SDKs in either Xcode-4.3+ or pre-4.3 SDKs directory. |