From 21f3a18bee33ca8ea657cd2762e4366b82ff1a4e Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 29 Sep 2006 16:14:34 -0400 Subject: [PATCH] ENH: fix failing tests on mac --- Source/cmGlobalXCodeGenerator.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index dbdf8d1b0..0b5c93e64 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -954,7 +954,6 @@ cmGlobalXCodeGenerator::AddCommandsToBuildPhase(cmXCodeObject* buildphase, } } makefileStream << "\n\n"; - for(std::vector::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& outputs = cc.GetOutputs(); if(!outputs.empty()) {