mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Xcode: No spaces in makefile target names (#12370)
Don't use spaces for target names in the makefiles.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user