diff options
author | Brad King <brad.king@kitware.com> | 2006-09-28 17:55:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-09-28 17:55:26 (GMT) |
commit | 7d2de52c1a617a8a559e5c749ce5e6abd3739f01 (patch) | |
tree | 3ae6b364d9f04d7cdcacd6ddc8ddd8f9e9bc0063 /Source/cmMakefile.cxx | |
parent | 506dca3990e56281bd0eecd6c26afe6d36caab6e (diff) | |
download | CMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.zip CMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.tar.gz CMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.tar.bz2 |
ENH: Cleaned up signature of cmMakefile::AddUtilityCommand. It is not valid to have an output from a utility rule and no calls to the method asked for an output anyway. The argument has been removed.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 38be4ca..d99182c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -783,7 +783,6 @@ cmMakefile::AddCustomCommandOldStyle(const char* target, //---------------------------------------------------------------------------- void cmMakefile::AddUtilityCommand(const char* utilityName, bool all, - const char* output, const std::vector<std::string>& depends, const char* workingDirectory, const char* command, @@ -815,13 +814,12 @@ void cmMakefile::AddUtilityCommand(const char* utilityName, bool all, commandLines.push_back(commandLine); // Call the real signature of this method. - this->AddUtilityCommand(utilityName, all, output, workingDirectory, + this->AddUtilityCommand(utilityName, all, workingDirectory, depends, commandLines); } //---------------------------------------------------------------------------- void cmMakefile::AddUtilityCommand(const char* utilityName, bool all, - const char* output, const char* workingDirectory, const std::vector<std::string>& depends, const cmCustomCommandLines& commandLines, @@ -834,10 +832,6 @@ void cmMakefile::AddUtilityCommand(const char* utilityName, bool all, target.SetMakefile(this); // Store the custom command in the target. std::vector<std::string> outputs; - if(output) - { - outputs.push_back(output); - } cmCustomCommand cc(outputs, depends, commandLines, 0, workingDirectory); cc.SetEscapeOldStyle(escapeOldStyle); target.GetPostBuildCommands().push_back(cc); |