diff options
author | Brad King <brad.king@kitware.com> | 2014-04-29 13:21:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-29 13:36:15 (GMT) |
commit | 0cce556b5fbe629dccee294aeece7c275343ed64 (patch) | |
tree | e47749a3911b3a456a13e096136a4e66aaa07a15 /Modules/CompilerId | |
parent | 0200d0a9c46da512a64aed381fd2e8781e04e32e (diff) | |
download | CMake-0cce556b5fbe629dccee294aeece7c275343ed64.zip CMake-0cce556b5fbe629dccee294aeece7c275343ed64.tar.gz CMake-0cce556b5fbe629dccee294aeece7c275343ed64.tar.bz2 |
Xcode: Use sysroot and deployment target to identify compiler
Use CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET to set the Xcode
SDKROOT and MACOSX_DEPLOYMENT_TARGET build settings. This is necessary
because some versions of Xcode select a different compiler based on
these settings. We need to make sure the compiler identified during
language initialization matches what will be used for the actual build.
Diffstat (limited to 'Modules/CompilerId')
-rw-r--r-- | Modules/CompilerId/Xcode-3.pbxproj.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CompilerId/Xcode-3.pbxproj.in b/Modules/CompilerId/Xcode-3.pbxproj.in index 6f861eb..eabfc6b 100644 --- a/Modules/CompilerId/Xcode-3.pbxproj.in +++ b/Modules/CompilerId/Xcode-3.pbxproj.in @@ -84,6 +84,8 @@ CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)"; SYMROOT = .; @id_toolset@ + @id_deployment_target@ + @id_sdkroot@ }; name = Debug; }; |