set_target_properties¶
Targets can have properties that affect how they are built.
set_target_properties(<targets> ...
PROPERTIES <prop1> <value1>
[<prop2> <value2>] ...)
Sets properties on targets. The syntax for the command is to list all
the targets you want to change, and then provide the values you want to
set next. You can use any prop value pair you want and extract it
later with the get_property() or get_target_property()
command.
在 4.5 版的變更: If <targets> contains 別名目標, properties are set on the
corresponding target referenced by each alias.
另請參見¶
the more general
set_property()command目標的屬性 for the list of properties known to CMake