summaryrefslogtreecommitdiffstats
path: root/Source/cmRuntimeDependencyArchive.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmRuntimeDependencyArchive.cxx')
-rw-r--r--Source/cmRuntimeDependencyArchive.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmRuntimeDependencyArchive.cxx b/Source/cmRuntimeDependencyArchive.cxx
index 0781d29..472f234 100644
--- a/Source/cmRuntimeDependencyArchive.cxx
+++ b/Source/cmRuntimeDependencyArchive.cxx
@@ -181,13 +181,10 @@ bool cmRuntimeDependencyArchive::GetRuntimeDependencies(
return false;
}
}
- for (auto const& mod : modules) {
- if (!this->Linker->ScanDependencies(mod, cmStateEnums::MODULE_LIBRARY)) {
- return false;
- }
- }
-
- return true;
+ return std::all_of(
+ modules.begin(), modules.end(), [this](std::string const& mod) -> bool {
+ return this->Linker->ScanDependencies(mod, cmStateEnums::MODULE_LIBRARY);
+ });
}
void cmRuntimeDependencyArchive::SetError(const std::string& e)