summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-08-24 18:14:09 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-08-24 20:07:24 (GMT)
commit970052feddcb49f52b49e04a9edd7cb5e9085859 (patch)
treee57a8c955889ef220b6fd9cec1904d19256fa41e /Source/cmGeneratorTarget.cxx
parentbcc396581387582acec736dcfac577f477f60821 (diff)
downloadCMake-970052feddcb49f52b49e04a9edd7cb5e9085859.zip
CMake-970052feddcb49f52b49e04a9edd7cb5e9085859.tar.gz
CMake-970052feddcb49f52b49e04a9edd7cb5e9085859.tar.bz2
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 0c351ad..99afee9 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;
}