diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-08-24 18:14:09 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-08-24 20:07:24 (GMT) |
commit | 970052feddcb49f52b49e04a9edd7cb5e9085859 (patch) | |
tree | e57a8c955889ef220b6fd9cec1904d19256fa41e /Source/cmGeneratorTarget.cxx | |
parent | bcc396581387582acec736dcfac577f477f60821 (diff) | |
download | CMake-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.cxx | 2 |
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; } |