summaryrefslogtreecommitdiffstats
path: root/Modules/CompilerId
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-29 13:21:00 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-29 13:36:15 (GMT)
commit0cce556b5fbe629dccee294aeece7c275343ed64 (patch)
treee47749a3911b3a456a13e096136a4e66aaa07a15 /Modules/CompilerId
parent0200d0a9c46da512a64aed381fd2e8781e04e32e (diff)
downloadCMake-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.in2
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;
};