summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-18 14:50:08 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-18 14:50:08 (GMT)
commit872553de7e729788242da37124f41e40228c6f13 (patch)
tree1bb9aaa4a3fa205c260f09b8eaa80efba79ec7ac /Source/cmGlobalXCodeGenerator.cxx
parent42bad89fe7ba61bed1f0ba293e8497970df2cef0 (diff)
downloadCMake-872553de7e729788242da37124f41e40228c6f13.zip
CMake-872553de7e729788242da37124f41e40228c6f13.tar.gz
CMake-872553de7e729788242da37124f41e40228c6f13.tar.bz2
ENH: Implemented generation of display for pre-build, pre-link, and post-build custom command comments during the build. This addresses issue #5353.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 0ecd9aa..f08c36e 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1144,11 +1144,6 @@ void cmGlobalXCodeGenerator
{
bool escapeOldStyle = cc.GetEscapeOldStyle();
bool escapeAllowMakeVars = cc.GetEscapeAllowMakeVars();
- makefileStream << "\n#" << "Custom command rule: ";
- if(cc.GetComment())
- {
- makefileStream << cc.GetComment();
- }
makefileStream << "\n";
const std::vector<std::string>& outputs = cc.GetOutputs();
if(!outputs.empty())
@@ -1175,6 +1170,14 @@ void cmGlobalXCodeGenerator
}
makefileStream << "\n";
+ if(const char* comment = cc.GetComment())
+ {
+ std::string echo_cmd = "echo ";
+ echo_cmd += (this->CurrentLocalGenerator->
+ EscapeForShell(comment, escapeAllowMakeVars));
+ makefileStream << "\t" << echo_cmd.c_str() << "\n";
+ }
+
// Add each command line to the set of commands.
for(cmCustomCommandLines::const_iterator cl =
cc.GetCommandLines().begin();