summaryrefslogtreecommitdiff
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-17 10:25:20 -0400
committerBrad King <brad.king@kitware.com>2018-10-18 08:10:55 -0400
commita6e02f881dc5e74d79201f761fb28c99a9e7d2af (patch)
treea71f752171ef570eff69ec6cc545671ba25a9db0 /Source/cmTarget.h
parenta093b1a4f3c8c40c55c50ad8e701ceb599961140 (diff)
downloadcmake-a6e02f881dc5e74d79201f761fb28c99a9e7d2af.tar.gz
add_dependencies: Track backtraces internally
Record backtraces for "utility" dependencies created by `add_dependencies` calls.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 694de1c3ce..aa2859d077 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -190,10 +190,12 @@ public:
* name as would be specified to the ADD_EXECUTABLE or UTILITY_SOURCE
* commands. It is not a full path nor does it have an extension.
*/
- void AddUtility(const std::string& u, cmMakefile* makefile = nullptr);
+ void AddUtility(std::string const& u, cmMakefile* mf = nullptr);
///! Get the utilities used by this target
- std::set<std::string> const& GetUtilities() const { return this->Utilities; }
- cmListFileBacktrace const* GetUtilityBacktrace(const std::string& u) const;
+ std::set<BT<std::string>> const& GetUtilities() const
+ {
+ return this->Utilities;
+ }
///! Set/Get a property of this target file
void SetProperty(const std::string& prop, const char* value);
@@ -307,8 +309,7 @@ private:
bool IsGeneratorProvided;
cmPropertyMap Properties;
std::set<std::string> SystemIncludeDirectories;
- std::set<std::string> Utilities;
- std::map<std::string, cmListFileBacktrace> UtilityBacktraces;
+ std::set<BT<std::string>> Utilities;
cmPolicies::PolicyMap PolicyMap;
std::string Name;
std::string InstallPath;