summaryrefslogtreecommitdiffstats
path: root/Help/command/target_sources.rst
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-03-03 15:15:08 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-03-03 15:17:10 (GMT)
commitb357d334fc0c2f47ebc6a3a2b0ceba25d4818bb0 (patch)
treed925af359e631e47cfe061c6560fe0a443c04aec /Help/command/target_sources.rst
parent04a7200c7561509a83c34f2af45b2d091ae59248 (diff)
downloadCMake-b357d334fc0c2f47ebc6a3a2b0ceba25d4818bb0.zip
CMake-b357d334fc0c2f47ebc6a3a2b0ceba25d4818bb0.tar.gz
CMake-b357d334fc0c2f47ebc6a3a2b0ceba25d4818bb0.tar.bz2
target_sources(): Enforce stricter requirements for FILE_SET name
Fixes: #23286
Diffstat (limited to 'Help/command/target_sources.rst')
-rw-r--r--Help/command/target_sources.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/command/target_sources.rst b/Help/command/target_sources.rst
index e482117..5e35eae 100644
--- a/Help/command/target_sources.rst
+++ b/Help/command/target_sources.rst
@@ -91,7 +91,8 @@ Each ``target_sources(FILE_SET)`` entry starts with ``INTERFACE``, ``PUBLIC``, o
``FILE_SET <set>``
A string representing the name of the file set to create or add to. This must
- not start with a capital letter, unless its name is ``HEADERS``.
+ contain only numbers, letters, and underscores, and must not start with a
+ capital letter or underscore, unless its name is ``HEADERS``.
``TYPE <type>``