summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-27 15:27:51 (GMT)
committerBrad King <brad.king@kitware.com>2020-10-29 13:37:44 (GMT)
commit3e36d5e84693691a29561e4212b16b3a1c080673 (patch)
treeb407d501ac69cacef5e249e4e3052f48e84677ab /Source/cmTarget.cxx
parentc404f64289bbf93bb7212df913a115e8c0c81e9d (diff)
downloadCMake-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.cxx5
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
{