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
|
|
|
|
|
|
|
set_target_properties(target1 target2 ...
|
|
|
|
PROPERTIES prop1 value1
|
|
|
|
prop2 value2 ...)
|
|
|
|
|
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
|
|
|
|
2018-08-09 18:06:22 +02:00
|
|
|
See also the :command:`set_property(TARGET)` command.
|
|
|
|
|
2015-11-17 17:22:37 +01:00
|
|
|
See :ref:`Target Properties` for the list of properties known to CMake.
|