summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkItemGraphVisitor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLinkItemGraphVisitor.cxx')
-rw-r--r--Source/cmLinkItemGraphVisitor.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmLinkItemGraphVisitor.cxx b/Source/cmLinkItemGraphVisitor.cxx
index dfdd3ff..7ad8690 100644
--- a/Source/cmLinkItemGraphVisitor.cxx
+++ b/Source/cmLinkItemGraphVisitor.cxx
@@ -98,7 +98,8 @@ void cmLinkItemGraphVisitor::GetDependencies(cmGeneratorTarget const& target,
std::string const& config,
DependencyMap& dependencies)
{
- auto implementationLibraries = target.GetLinkImplementationLibraries(config);
+ const auto* implementationLibraries =
+ target.GetLinkImplementationLibraries(config);
if (implementationLibraries != nullptr) {
for (auto const& lib : implementationLibraries->Libraries) {
auto const& name = lib.AsStr();
@@ -106,7 +107,7 @@ void cmLinkItemGraphVisitor::GetDependencies(cmGeneratorTarget const& target,
}
}
- auto interfaceLibraries =
+ const auto* interfaceLibraries =
target.GetLinkInterfaceLibraries(config, &target, true);
if (interfaceLibraries != nullptr) {
for (auto const& lib : interfaceLibraries->Libraries) {