diff options
author | Brad King <brad.king@kitware.com> | 2007-05-28 15:18:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-28 15:18:15 (GMT) |
commit | 09289aadb6934aebee01f2b8ca65c842004203c0 (patch) | |
tree | c7faa46e6b2aca0c33aefcef69a39236b1d3699f /Source | |
parent | 60f02a27dbdee46bb10d777c4af9991507815066 (diff) | |
download | CMake-09289aadb6934aebee01f2b8ca65c842004203c0.zip CMake-09289aadb6934aebee01f2b8ca65c842004203c0.tar.gz CMake-09289aadb6934aebee01f2b8ca65c842004203c0.tar.bz2 |
ENH: Removed "Used" mark from custom commands. It is no longer needed or checked by any generators.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCustomCommand.cxx | 3 | ||||
-rw-r--r-- | Source/cmCustomCommand.h | 5 | ||||
-rw-r--r-- | Source/cmTarget.cxx | 10 |
3 files changed, 0 insertions, 18 deletions
diff --git a/Source/cmCustomCommand.cxx b/Source/cmCustomCommand.cxx index c070174..b0df423 100644 --- a/Source/cmCustomCommand.cxx +++ b/Source/cmCustomCommand.cxx @@ -22,7 +22,6 @@ cmCustomCommand::cmCustomCommand() this->HaveComment = false; this->EscapeOldStyle = true; this->EscapeAllowMakeVars = false; - this->Used = false; } //---------------------------------------------------------------------------- @@ -36,7 +35,6 @@ cmCustomCommand::cmCustomCommand(const cmCustomCommand& r): EscapeAllowMakeVars(r.EscapeAllowMakeVars), EscapeOldStyle(r.EscapeOldStyle) { - this->Used = false; } //---------------------------------------------------------------------------- @@ -56,7 +54,6 @@ cmCustomCommand::cmCustomCommand(const std::vector<std::string>& outputs, { this->EscapeOldStyle = true; this->EscapeAllowMakeVars = false; - this->Used = false; } //---------------------------------------------------------------------------- diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h index f7c6b5e..17b4c0d 100644 --- a/Source/cmCustomCommand.h +++ b/Source/cmCustomCommand.h @@ -68,10 +68,6 @@ public: bool GetEscapeAllowMakeVars() const; void SetEscapeAllowMakeVars(bool b); - /** set get the used status of the command */ - void SetUsed() { this->Used = true;} - bool IsUsed() const { return this->Used;} - private: std::vector<std::string> Outputs; std::vector<std::string> Depends; @@ -81,7 +77,6 @@ private: std::string WorkingDirectory; bool EscapeAllowMakeVars; bool EscapeOldStyle; - bool Used; }; #endif diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index c4417bb..2f2ea4e 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -648,16 +648,6 @@ void cmTarget::TraceVSDependencies(std::string projFile, // finished with this SF move to the next srcFilesToProcess.pop(); } - // mark all custom commands in the targets list of source files as used. - for(std::vector<cmSourceFile*>::iterator i = this->SourceFiles.begin(); - i != this->SourceFiles.end(); ++i) - { - cmCustomCommand* cc = (*i)->GetCustomCommand(); - if(cc) - { - cc->SetUsed(); - } - } } void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf) |