diff options
author | Johan Björk <phb@spotify.com> | 2011-08-27 18:17:00 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-09-05 16:20:19 (GMT) |
commit | e05e0f1d2c63353e25675df5430e1cbcd909cf93 (patch) | |
tree | bca5ee1a8187be80a1a62f03ab982689dcb1fade | |
parent | 48ba9b2f197cde7f309b9ef3770e1bf003a7e8e8 (diff) | |
download | CMake-e05e0f1d2c63353e25675df5430e1cbcd909cf93.zip CMake-e05e0f1d2c63353e25675df5430e1cbcd909cf93.tar.gz CMake-e05e0f1d2c63353e25675df5430e1cbcd909cf93.tar.bz2 |
Xcode: No spaces in makefile target names (#12370)
Don't use spaces for target names in the makefiles.
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 02a95fe..0f2ee9b 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/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; |