summaryrefslogtreecommitdiffstats
path: root/Source/cmExportBuildAndroidMKGenerator.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/cmExportBuildAndroidMKGenerator.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/cmExportBuildAndroidMKGenerator.cxx')
-rw-r--r--Source/cmExportBuildAndroidMKGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExportBuildAndroidMKGenerator.cxx b/Source/cmExportBuildAndroidMKGenerator.cxx
index 3641cb2..bcd8c64 100644
--- a/Source/cmExportBuildAndroidMKGenerator.cxx
+++ b/Source/cmExportBuildAndroidMKGenerator.cxx
@@ -106,7 +106,8 @@ void cmExportBuildAndroidMKGenerator::GenerateInterfaceProperties(
std::string sharedLibs;
std::string ldlibs;
cmLinkInterfaceLibraries const* linkIFace =
- target->GetLinkInterfaceLibraries(config, target, false);
+ target->GetLinkInterfaceLibraries(
+ config, target, cmGeneratorTarget::LinkInterfaceFor::Link);
for (cmLinkItem const& item : linkIFace->Libraries) {
cmGeneratorTarget const* gt = item.Target;
std::string const& lib = item.AsStr();