mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
ENH: Return utility target after creation
After creating a utility target with AddUtilityCommand, return a pointer to the cmTarget instance so the caller may further modify the target as needed.
This commit is contained in:
parent
802b76a7c4
commit
0ad5eb177b
@ -982,7 +982,8 @@ void cmMakefile::AddUtilityCommand(const char* utilityName,
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmMakefile::AddUtilityCommand(const char* utilityName,
|
||||
cmTarget*
|
||||
cmMakefile::AddUtilityCommand(const char* utilityName,
|
||||
bool excludeFromAll,
|
||||
const char* workingDirectory,
|
||||
const std::vector<std::string>& depends,
|
||||
@ -1025,6 +1026,7 @@ void cmMakefile::AddUtilityCommand(const char* utilityName,
|
||||
cmSystemTools::Error("Could not get source file entry for ",
|
||||
force.c_str());
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
void cmMakefile::AddDefineFlag(const char* flag)
|
||||
|
@ -200,7 +200,7 @@ public:
|
||||
const char* arg2=0,
|
||||
const char* arg3=0,
|
||||
const char* arg4=0);
|
||||
void AddUtilityCommand(const char* utilityName, bool excludeFromAll,
|
||||
cmTarget* AddUtilityCommand(const char* utilityName, bool excludeFromAll,
|
||||
const char* workingDirectory,
|
||||
const std::vector<std::string>& depends,
|
||||
const cmCustomCommandLines& commandLines,
|
||||
|
Loading…
Reference in New Issue
Block a user