diff options
author | Brad King <brad.king@kitware.com> | 2018-10-17 14:25:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-18 12:10:55 (GMT) |
commit | a6e02f881dc5e74d79201f761fb28c99a9e7d2af (patch) | |
tree | a71f752171ef570eff69ec6cc545671ba25a9db0 /Source/cmTarget.h | |
parent | a093b1a4f3c8c40c55c50ad8e701ceb599961140 (diff) | |
download | CMake-a6e02f881dc5e74d79201f761fb28c99a9e7d2af.zip CMake-a6e02f881dc5e74d79201f761fb28c99a9e7d2af.tar.gz CMake-a6e02f881dc5e74d79201f761fb28c99a9e7d2af.tar.bz2 |
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.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 694de1c..aa2859d 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; |