diff options
author | Brad King <brad.king@kitware.com> | 2008-10-09 15:00:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-10-09 15:00:54 (GMT) |
commit | 0ad5eb177b4b1f56c1ae29445575dc63d4ddf0eb (patch) | |
tree | e6368634fd199f20aeb8cea9ad332a7c951269a4 /Source/cmMakefile.h | |
parent | 802b76a7c4de24ef0dff725cf252885748e97efa (diff) | |
download | CMake-0ad5eb177b4b1f56c1ae29445575dc63d4ddf0eb.zip CMake-0ad5eb177b4b1f56c1ae29445575dc63d4ddf0eb.tar.gz CMake-0ad5eb177b4b1f56c1ae29445575dc63d4ddf0eb.tar.bz2 |
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.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index c2dbfb1..971496d 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -200,12 +200,12 @@ public: const char* arg2=0, const char* arg3=0, const char* arg4=0); - void AddUtilityCommand(const char* utilityName, bool excludeFromAll, - const char* workingDirectory, - const std::vector<std::string>& depends, - const cmCustomCommandLines& commandLines, - bool escapeOldStyle = true, - const char* comment = 0); + cmTarget* AddUtilityCommand(const char* utilityName, bool excludeFromAll, + const char* workingDirectory, + const std::vector<std::string>& depends, + const cmCustomCommandLines& commandLines, + bool escapeOldStyle = true, + const char* comment = 0); /** * Add a link library to the build. |