set_target_properties.rst 826 B

1234567891011121314151617181920212223242526
  1. set_target_properties
  2. ---------------------
  3. Targets can have properties that affect how they are built.
  4. .. code-block:: cmake
  5. set_target_properties(<targets> ...
  6. PROPERTIES <prop1> <value1>
  7. [<prop2> <value2>] ...)
  8. Sets properties on targets. The syntax for the command is to list all
  9. the targets you want to change, and then provide the values you want to
  10. set next. You can use any prop value pair you want and extract it
  11. later with the :command:`get_property` or :command:`get_target_property`
  12. command.
  13. :ref:`Alias Targets` do not support setting target properties.
  14. See Also
  15. ^^^^^^^^
  16. * :command:`define_property`
  17. * :command:`get_target_property`
  18. * the more general :command:`set_property` command
  19. * :ref:`Target Properties` for the list of properties known to CMake