summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx18
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));
}