target_sources(): Enforce stricter requirements for FILE_SET name

Fixes: #23286
This commit is contained in:
Kyle Edwards
2022-03-03 10:15:08 -05:00
parent 04a7200c75
commit b357d334fc
8 changed files with 30 additions and 4 deletions

View File

@@ -56,6 +56,8 @@ public:
const cmGeneratorTarget* target,
cmGeneratorExpressionDAGChecker* dagChecker = nullptr) const;
static bool IsValidName(const std::string& name);
private:
std::string Name;
std::string Type;