diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-10 21:47:37 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-10 21:47:37 (GMT) |
commit | 3893ee72d2d5a04889cc1056b56029c9d60393c0 (patch) | |
tree | 3d96e526b726e7c0f2965489f74f2655776d6390 /Source/cmMakefile.cxx | |
parent | ab64db6ee84604c361a2d6f279398f7c9d3247f5 (diff) | |
download | CMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.zip CMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.tar.gz CMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.tar.bz2 |
Add comment support, so that you can see in build process what the custom command does
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 0fec989..9c5dc9f 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -415,7 +415,8 @@ void cmMakefile::AddCustomCommand(const char* source, const std::vector<std::string>& commandArgs, const std::vector<std::string>& depends, const std::vector<std::string>& outputs, - const char *target) + const char *target, + const char *comment) { // find the target, if (m_Targets.find(target) != m_Targets.end()) @@ -434,6 +435,10 @@ void cmMakefile::AddCustomCommand(const char* source, } cmCustomCommand cc(source,c.c_str(),combinedArgs.c_str(),depends,outputs); + if ( comment && comment[0] ) + { + cc.SetComment(comment); + } m_Targets[target].GetCustomCommands().push_back(cc); std::string cacheCommand = command; this->ExpandVariablesInString(cacheCommand); |