summaryrefslogtreecommitdiff
path: root/Source/cmComputeTargetDepends.cxx
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-08-30 11:47:37 +0200
committerDaniel Eiband <daniel.eiband@brainlab.com>2019-08-30 13:52:13 +0200
commit10507c6dc0918777d43b3f961bd18162866f0bbb (patch)
treed0b05fd25d6c25e3ef47a81905bed33a65cccc49 /Source/cmComputeTargetDepends.cxx
parent3ec986ce8e8df269eb6b6b9f37e12b02194168fd (diff)
downloadcmake-10507c6dc0918777d43b3f961bd18162866f0bbb.tar.gz
cmMakefile: Add configurations getter with empty configuration default
Diffstat (limited to 'Source/cmComputeTargetDepends.cxx')
-rw-r--r--Source/cmComputeTargetDepends.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx
index 01d4c07e02..6bf2f2d20c 100644
--- a/Source/cmComputeTargetDepends.cxx
+++ b/Source/cmComputeTargetDepends.cxx
@@ -197,11 +197,8 @@ void cmComputeTargetDepends::CollectTargetDepends(int depender_index)
{
std::set<cmLinkItem> emitted;
- std::vector<std::string> configs;
- depender->Makefile->GetConfigurations(configs);
- if (configs.empty()) {
- configs.emplace_back();
- }
+ std::vector<std::string> const& configs =
+ depender->Makefile->GetGeneratorConfigs();
for (std::string const& it : configs) {
std::vector<cmSourceFile const*> objectFiles;
depender->GetExternalObjects(objectFiles, it);