summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkItemGraphVisitor.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-08 21:39:31 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-09 16:00:23 (GMT)
commit1e49880472e58dedd4819fcd4c49a3346f60bb0d (patch)
treee14d78ed896c8709b84b8eba9e6607c8bbcaeef6 /Source/cmLinkItemGraphVisitor.cxx
parent642238b3021ccb1923e57563bb61e0abb0111c84 (diff)
downloadCMake-1e49880472e58dedd4819fcd4c49a3346f60bb0d.zip
CMake-1e49880472e58dedd4819fcd4c49a3346f60bb0d.tar.gz
CMake-1e49880472e58dedd4819fcd4c49a3346f60bb0d.tar.bz2
cmGeneratorTarget: Avoid boolean trap in usage requirement lookup
Replace `bool usage_requirements_only` arguments with a proper enumeration to clarify meaning at call sites.
Diffstat (limited to 'Source/cmLinkItemGraphVisitor.cxx')
-rw-r--r--Source/cmLinkItemGraphVisitor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLinkItemGraphVisitor.cxx b/Source/cmLinkItemGraphVisitor.cxx
index 7ad8690..d87d183 100644
--- a/Source/cmLinkItemGraphVisitor.cxx
+++ b/Source/cmLinkItemGraphVisitor.cxx
@@ -107,8 +107,8 @@ void cmLinkItemGraphVisitor::GetDependencies(cmGeneratorTarget const& target,
}
}
- const auto* interfaceLibraries =
- target.GetLinkInterfaceLibraries(config, &target, true);
+ const auto* interfaceLibraries = target.GetLinkInterfaceLibraries(
+ config, &target, cmGeneratorTarget::LinkInterfaceFor::Usage);
if (interfaceLibraries != nullptr) {
for (auto const& lib : interfaceLibraries->Libraries) {
auto const& name = lib.AsStr();