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/cmAddCustomTargetCommand.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/cmAddCustomTargetCommand.cxx')
-rw-r--r-- | Source/cmAddCustomTargetCommand.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx index bbe15a2..ad3a0f4 100644 --- a/Source/cmAddCustomTargetCommand.cxx +++ b/Source/cmAddCustomTargetCommand.cxx @@ -43,16 +43,27 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // cmAddCustomTargetCommand bool cmAddCustomTargetCommand::Invoke(std::vector<std::string>& args) { + bool all = false; + if(args.size() < 2 ) { this->SetError("called with incorrect number of arguments"); return false; } - std::vector<std::string> dep; m_Makefile->ExpandVariablesInString(args[0]); m_Makefile->ExpandVariablesInString(args[1]); + + // all target option + if (args.size() >= 3) + { + if (args[2] == "ALL") + { + all = true; + } + } m_Makefile->AddUtilityCommand(args[0].c_str(), - args[1].c_str()); + args[1].c_str(), all); + return true; } |