summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-04 19:50:26 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-04 19:50:26 (GMT)
commit089aa3e10628aff58992a62b12fa1f1ce6e643b8 (patch)
tree895ff9462602cff9e0dce5d999301644fe6f9e1c /Source/cmAddCustomTargetCommand.cxx
parent2383d6ff6d55d608688a3b21fc2710e72d375392 (diff)
downloadCMake-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.cxx15
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;
}