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

Don't use spaces for target names in the makefiles.
This commit is contained in:
Johan Björk 2011-08-27 20:17:00 +02:00 committed by David Cole
parent 48ba9b2f19
commit e05e0f1d2c
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;