diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-09-29 20:14:34 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-09-29 20:14:34 (GMT) |
commit | 21f3a18bee33ca8ea657cd2762e4366b82ff1a4e (patch) | |
tree | 4b2224fd995e1a4925514034a85067a03a3a500c /Source/cmGlobalXCodeGenerator.cxx | |
parent | 28921d907f8227ad3f6e081ac75a9a8da8f69be4 (diff) | |
download | CMake-21f3a18bee33ca8ea657cd2762e4366b82ff1a4e.zip CMake-21f3a18bee33ca8ea657cd2762e4366b82ff1a4e.tar.gz CMake-21f3a18bee33ca8ea657cd2762e4366b82ff1a4e.tar.bz2 |
ENH: fix failing tests on mac
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index dbdf8d1..0b5c93e 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -954,7 +954,6 @@ cmGlobalXCodeGenerator::AddCommandsToBuildPhase(cmXCodeObject* buildphase, } } makefileStream << "\n\n"; - for(std::vector<cmCustomCommand>::const_iterator i = commands.begin(); i != commands.end(); ++i) { @@ -963,8 +962,12 @@ cmGlobalXCodeGenerator::AddCommandsToBuildPhase(cmXCodeObject* buildphase, { bool escapeOldStyle = cc.GetEscapeOldStyle(); bool escapeAllowMakeVars = cc.GetEscapeAllowMakeVars(); - makefileStream << "\n#" << "Custom command rule: " << - cc.GetComment() << "\n"; + makefileStream << "\n#" << "Custom command rule: "; + if(cc.GetComment()) + { + makefileStream << cc.GetComment(); + } + makefileStream << "\n"; const std::vector<std::string>& outputs = cc.GetOutputs(); if(!outputs.empty()) { |