Explorar el Código

Merge topic 'fix-12370-no-space-in-target-name'

e05e0f1 Xcode: No spaces in makefile target names (#12370)
David Cole hace 14 años
padre
commit
db4154661c
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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;