summaryrefslogtreecommitdiff
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-08-24 14:14:09 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2022-08-24 16:07:24 -0400
commit970052feddcb49f52b49e04a9edd7cb5e9085859 (patch)
treee57a8c955889ef220b6fd9cec1904d19256fa41e /Source/cmGeneratorTarget.cxx
parentbcc396581387582acec736dcfac577f477f60821 (diff)
downloadcmake-970052feddcb49f52b49e04a9edd7cb5e9085859.tar.gz
FILE_SET: Fix source group detection
Call MatchChildrenFiles() instead of MatchesFiles() in order to account for files being in subgroups of source groups. Fixes: #23880
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 0c351adac0..99afee9cf1 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1702,7 +1702,7 @@ void addFileSetEntry(cmGeneratorTarget const* headTarget,
}
bool found = false;
for (auto const& sg : headTarget->Makefile->GetSourceGroups()) {
- if (sg.MatchesFiles(path)) {
+ if (sg.MatchChildrenFiles(path)) {
found = true;
break;
}