summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-09-07 19:38:16 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-09-07 19:38:16 (GMT)
commitdb4154661cfa1baf2596ce4c68ac8a328690245d (patch)
tree50e63dda72ff5a5360c8fbb730d69bc09a08c1b3 /Source/cmGlobalXCodeGenerator.cxx
parent54730d7604a69975e66047c3b5f406df89a4ade5 (diff)
parente05e0f1d2c63353e25675df5430e1cbcd909cf93 (diff)
downloadCMake-db4154661cfa1baf2596ce4c68ac8a328690245d.zip
CMake-db4154661cfa1baf2596ce4c68ac8a328690245d.tar.gz
CMake-db4154661cfa1baf2596ce4c68ac8a328690245d.tar.bz2
Merge topic 'fix-12370-no-space-in-target-name'
e05e0f1 Xcode: No spaces in makefile target names (#12370)
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 690dabb..98a08a9 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -327,7 +327,9 @@ std::string
cmGlobalXCodeGenerator::PostBuildMakeTarget(std::string const& tName,
std::string const& configName)
{
- std::string out = "PostBuild." + tName;
+ std::string target = tName;
+ cmSystemTools::ReplaceString(target, " ", "_");
+ std::string out = "PostBuild." + target;
if(this->XcodeVersion > 20)
{
out += "." + configName;