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

e05e0f1 Xcode: No spaces in makefile target names (#12370)
This commit is contained in:
David Cole 2011-09-07 15:38:16 -04:00 committed by CMake Topic Stage
commit db4154661c
1 changed files with 3 additions and 1 deletions

View File

@ -327,7 +327,9 @@ std::string
cmGlobalXCodeGenerator::PostBuildMakeTarget(std::string const& tName, cmGlobalXCodeGenerator::PostBuildMakeTarget(std::string const& tName,
std::string const& configName) 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) if(this->XcodeVersion > 20)
{ {
out += "." + configName; out += "." + configName;