source_group: TREE with empty string must be supported

Fixes: #28230
This commit is contained in:
Marc Chevrier committed 2026-10-30 17:18:22 +01:00
1 parent be82723c6a
commit 809aacdd5c
3 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ bool cmSourceGroupCommand(std::vector<std::string> const& args,
cm::optional<std::string> Regex;
cm::optional<ArgumentParser::MaybeEmpty<std::vector<std::string>>>
FileSets;
cm::optional<ArgumentParser::NonEmpty<std::string>> Tree;
cm::optional<ArgumentParser::MaybeEmpty<std::string>> Tree;
cm::optional<ArgumentParser::MaybeEmpty<std::string>> Prefix;
std::map<std::string, std::set<std::string>> FileSetsPerTarget;
@@ -0,0 +1,2 @@
source_group(TREE "" FILES)
@@ -2,6 +2,7 @@
include(RunCMake)
run_cmake(MixedSignatures)
run_cmake(EmptyTREE)
run_cmake(WrongRegex)
run_cmake(IgnoredKeywords)
run_cmake(MissingFILE_SETS)