target_sources(): Prohibit FILE_SET on custom targets

Fixes: #23262
This commit is contained in:
Kyle Edwards
2022-02-28 17:11:53 -05:00
parent 07a7772968
commit ad41c9cd11
6 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -75,7 +75,8 @@ Adds a file set to a target, or adds files to an existing file set. Targets
have zero or more named file sets. Each file set has a name, a type, a scope of
``INTERFACE``, ``PUBLIC``, or ``PRIVATE``, one or more base directories, and
files within those directories. The only acceptable type is ``HEADERS``. The
optional default file sets are named after their type.
optional default file sets are named after their type. The target may not be a
custom target.
Files in a ``PRIVATE`` or ``PUBLIC`` file set are marked as source files for
the purposes of IDE integration. Additionally, files in ``HEADERS`` file sets