2014-08-03 19:52:23 +02:00
|
|
|
set_target_properties
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
Targets can have properties that affect how they are built.
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
.. code-block:: cmake
|
2014-08-03 19:52:23 +02:00
|
|
|
|
2024-02-02 17:42:32 +01:00
|
|
|
set_target_properties(<targets> ...
|
|
|
|
PROPERTIES <prop1> <value1>
|
|
|
|
[<prop2> <value2>] ...)
|
2014-08-03 19:52:23 +02:00
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
Sets properties on targets. The syntax for the command is to list all
|
2018-08-09 18:06:22 +02:00
|
|
|
the targets you want to change, and then provide the values you want to
|
2014-08-03 19:52:23 +02:00
|
|
|
set next. You can use any prop value pair you want and extract it
|
2015-11-17 17:22:37 +01:00
|
|
|
later with the :command:`get_property` or :command:`get_target_property`
|
|
|
|
command.
|
2014-08-03 19:52:23 +02:00
|
|
|
|
2023-07-02 19:51:09 +02:00
|
|
|
:ref:`Alias Targets` do not support setting target properties.
|
|
|
|
|
2023-05-23 16:38:00 +02:00
|
|
|
See Also
|
|
|
|
^^^^^^^^
|
2018-08-09 18:06:22 +02:00
|
|
|
|
2023-05-23 16:38:00 +02:00
|
|
|
* :command:`define_property`
|
|
|
|
* :command:`get_target_property`
|
|
|
|
* the more general :command:`set_property` command
|
|
|
|
* :ref:`Target Properties` for the list of properties known to CMake
|