diff options
author | Brad King <brad.king@kitware.com> | 2020-10-27 15:27:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-29 13:37:44 (GMT) |
commit | 3e36d5e84693691a29561e4212b16b3a1c080673 (patch) | |
tree | b407d501ac69cacef5e249e4e3052f48e84677ab /Source/cmTarget.cxx | |
parent | c404f64289bbf93bb7212df913a115e8c0c81e9d (diff) | |
download | CMake-3e36d5e84693691a29561e4212b16b3a1c080673.zip CMake-3e36d5e84693691a29561e4212b16b3a1c080673.tar.gz CMake-3e36d5e84693691a29561e4212b16b3a1c080673.tar.bz2 |
cmGeneratorTarget: Refactor custom command dependency evaluation
Previously we only used cmCustomCommandGenerator to evaluate generator
expressions for dependencies. Use it for command lines too. It also
collects target references for us, with backtraces.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 4eebec6..0860b71 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -623,6 +623,11 @@ void cmTarget::AddUtility(std::string const& name, bool cross, cmMakefile* mf) { name, cross }, mf ? mf->GetBacktrace() : cmListFileBacktrace())); } +void cmTarget::AddUtility(BT<std::pair<std::string, bool>> util) +{ + impl->Utilities.emplace(std::move(util)); +} + std::set<BT<std::pair<std::string, bool>>> const& cmTarget::GetUtilities() const { |