summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-01-27 15:30:55 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-01-27 15:30:55 (GMT)
commit1dee719cdc0fe007235f3105df880cc51b597828 (patch)
tree5a9a845c257192c640899366c635ba7df2e4fccd /Source/cmGlobalXCodeGenerator.cxx
parent97ef91d57b46f43afb0c5474a091b9b9fd424b29 (diff)
downloadCMake-1dee719cdc0fe007235f3105df880cc51b597828.zip
CMake-1dee719cdc0fe007235f3105df880cc51b597828.tar.gz
CMake-1dee719cdc0fe007235f3105df880cc51b597828.tar.bz2
BUG: Fix issue #6195. Add CMAKE_OSX_DEPLOYMENT_TARGET cache variable to specify the target deployment runtime OS version of the built executables on Mac OSX. Thanks to Mike Jackson for the patch.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index c749321..6e6a2d7 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2477,6 +2477,8 @@ void cmGlobalXCodeGenerator
this->CurrentMakefile->GetDefinition("CMAKE_OSX_SYSROOT");
const char* sysrootDefault =
this->CurrentMakefile->GetDefinition("CMAKE_OSX_SYSROOT_DEFAULT");
+ const char* deploymentTarget =
+ this->CurrentMakefile->GetDefinition("CMAKE_OSX_DEPLOYMENT_TARGET");
if(osxArch && sysroot)
{
bool flagsUsed = false;
@@ -2518,6 +2520,11 @@ void cmGlobalXCodeGenerator
this->CreateString(sysroot));
}
}
+ if(deploymentTarget && *deploymentTarget)
+ {
+ buildSettings->AddAttribute("MACOSX_DEPLOYMENT_TARGET",
+ this->CreateString(deploymentTarget));
+ }
for( std::vector<cmXCodeObject*>::iterator i = configs.begin();
i != configs.end(); ++i)
{