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/cmSourceGroup.h | |
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/cmSourceGroup.h')
-rw-r--r-- | Source/cmSourceGroup.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmSourceGroup.h b/Source/cmSourceGroup.h index 295240d..9ce71c7 100644 --- a/Source/cmSourceGroup.h +++ b/Source/cmSourceGroup.h @@ -80,6 +80,12 @@ public: cmSourceGroup* MatchChildrenFiles(const std::string& name); /** + * Check if the given name matches this group's explicit file list + * in children. + */ + const cmSourceGroup* MatchChildrenFiles(const std::string& name) const; + + /** * Check if the given name matches this group's regex in children. */ cmSourceGroup* MatchChildrenRegex(const std::string& name); |