Browse Source

Xcode: No spaces in makefile target names (#12370)

Don't use spaces for target names in the makefiles.
Johan Björk 14 years ago
parent
commit
e05e0f1d2c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Source/cmGlobalXCodeGenerator.cxx

+ 3 - 1
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;