summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorRyan Friedman <ryanfriedman5410+github@gmail.com>2023-06-24 16:53:05 (GMT)
committerBrad King <brad.king@kitware.com>2023-06-26 16:47:26 (GMT)
commitaed550410abfedbdc7270486493a967bac328a92 (patch)
tree0917b280516ad0241e864eb2ae5d726d99e212de /Help
parentf58c7659d8652c1172fc15a0bae9d71ee477c1eb (diff)
downloadCMake-aed550410abfedbdc7270486493a967bac328a92.zip
CMake-aed550410abfedbdc7270486493a967bac328a92.tar.gz
CMake-aed550410abfedbdc7270486493a967bac328a92.tar.bz2
Help: Clarify that you can't set properties on ALIAS targets
Issue: #19445 Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Diffstat (limited to 'Help')
-rw-r--r--Help/command/set_property.rst2
-rw-r--r--Help/command/set_target_properties.rst2
2 files changed, 4 insertions, 0 deletions
diff --git a/Help/command/set_property.rst b/Help/command/set_property.rst
index 8dd4b94..fc43974 100644
--- a/Help/command/set_property.rst
+++ b/Help/command/set_property.rst
@@ -38,6 +38,8 @@ It must be one of the following:
Scope may name zero or more existing targets.
See also the :command:`set_target_properties` command.
+ :ref:`Alias Targets` do not support setting target properties.
+
``SOURCE``
Scope may name zero or more source files. By default, source file properties
are only visible to targets added in the same directory (``CMakeLists.txt``).
diff --git a/Help/command/set_target_properties.rst b/Help/command/set_target_properties.rst
index 856b92c..874788b 100644
--- a/Help/command/set_target_properties.rst
+++ b/Help/command/set_target_properties.rst
@@ -15,6 +15,8 @@ set next. You can use any prop value pair you want and extract it
later with the :command:`get_property` or :command:`get_target_property`
command.
+:ref:`Alias Targets` do not support setting target properties.
+
See Also
^^^^^^^^