summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-20 21:25:27 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-09-21 11:28:54 (GMT)
commit2c2b25b203e653326c0f4064649da06a8cdfd7a5 (patch)
tree1b240dfbc8bc5e573495d183b2600026850a65aa /Source/cmGlobalXCodeGenerator.cxx
parentb7e48e0acbd0cd30f803ec8c2d402c636beba778 (diff)
downloadCMake-2c2b25b203e653326c0f4064649da06a8cdfd7a5.zip
CMake-2c2b25b203e653326c0f4064649da06a8cdfd7a5.tar.gz
CMake-2c2b25b203e653326c0f4064649da06a8cdfd7a5.tar.bz2
Return a std::string from GetCompileDefinitions.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index a270cc9..2f4311f 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1648,10 +1648,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
this->AppendDefines(ppDefs, exportMacro);
}
cmGeneratorTarget *gtgt = this->GetGeneratorTarget(&target);
- this->AppendDefines(ppDefs, gtgt->GetCompileDefinitions());
+ this->AppendDefines(ppDefs, gtgt->GetCompileDefinitions().c_str());
if(configName)
{
- this->AppendDefines(ppDefs, gtgt->GetCompileDefinitions(configName));
+ this->AppendDefines(ppDefs,
+ gtgt->GetCompileDefinitions(configName).c_str());
}
buildSettings->AddAttribute
("GCC_PREPROCESSOR_DEFINITIONS", ppDefs.CreateList());