summaryrefslogtreecommitdiff
path: root/Source/cmGhsMultiTargetGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.cxx')
-rw-r--r--Source/cmGhsMultiTargetGenerator.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx
index 3c44a885fc..ed5bff5ff8 100644
--- a/Source/cmGhsMultiTargetGenerator.cxx
+++ b/Source/cmGhsMultiTargetGenerator.cxx
@@ -726,12 +726,10 @@ bool cmGhsMultiTargetGenerator::DetermineIfIntegrityApp()
}
std::vector<cmSourceFile*> sources;
this->GeneratorTarget->GetSourceFiles(sources, this->ConfigName);
- for (const cmSourceFile* sf : sources) {
- if ("int" == sf->GetExtension()) {
- return true;
- }
- }
- return false;
+ return std::any_of(sources.begin(), sources.end(),
+ [](cmSourceFile const* sf) -> bool {
+ return "int" == sf->GetExtension();
+ });
}
bool cmGhsMultiTargetGenerator::ComputeCustomCommandOrder(