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/CMakeFindPackageMode.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/CMakeFindPackageMode.cmake')
-rw-r--r-- | Modules/CMakeFindPackageMode.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeFindPackageMode.cmake b/Modules/CMakeFindPackageMode.cmake index c9f58e3..cea0187 100644 --- a/Modules/CMakeFindPackageMode.cmake +++ b/Modules/CMakeFindPackageMode.cmake @@ -53,8 +53,8 @@ include(CMakeDetermineSystem) # short-cut some tests on Darwin, see Darwin-GNU.cmake: if("${CMAKE_SYSTEM_NAME}" MATCHES Darwin AND "${COMPILER_ID}" MATCHES GNU) - set(${CMAKE_${LANGUAGE}_HAS_ISYSROOT} 0 ) - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "") + set(CMAKE_${LANGUAGE}_SYSROOT_FLAG "") + set(CMAKE_${LANGUAGE}_OSX_DEPLOYMENT_TARGET_FLAG "") endif() # Also load the system specific file, which sets up e.g. the search paths. |