diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-05-04 19:50:26 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-05-04 19:50:26 (GMT) |
commit | 089aa3e10628aff58992a62b12fa1f1ce6e643b8 (patch) | |
tree | 895ff9462602cff9e0dce5d999301644fe6f9e1c /Source/cmMakefile.cxx | |
parent | 2383d6ff6d55d608688a3b21fc2710e72d375392 (diff) | |
download | CMake-089aa3e10628aff58992a62b12fa1f1ce6e643b8.zip CMake-089aa3e10628aff58992a62b12fa1f1ce6e643b8.tar.gz CMake-089aa3e10628aff58992a62b12fa1f1ce6e643b8.tar.bz2 |
option to make utilities in the all target
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 0cfe265..9680064 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -482,12 +482,24 @@ void cmMakefile::AddExecutable(const char *exeName, void cmMakefile::AddUtilityCommand(const char* utilityName, - const char* command) + const char* command, + bool all) +{ + std::vector<std::string> empty; + this->AddUtilityCommand(utilityName,command,all, + empty,empty); +} + +void cmMakefile::AddUtilityCommand(const char* utilityName, + const char* command, + bool all, + const std::vector<std::string> &dep, + const std::vector<std::string> &out) { cmTarget target; target.SetType(cmTarget::UTILITY); - std::vector<std::string> empty; - cmCustomCommand cc(utilityName, command, empty, empty); + target.SetInAll(all); + cmCustomCommand cc(utilityName, command, dep, out); target.GetCustomCommands().push_back(cc); m_Targets.insert(cmTargets::value_type(utilityName,target)); } |