cmake/Help/prop_sf/VS_SETTINGS.rst

26 lines
636 B
ReStructuredText
Raw Normal View History

2020-08-30 11:54:41 +02:00
VS_SETTINGS
-----------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.18
2021-11-20 13:41:27 +01:00
Set any item metadata on a file.
.. versionadded:: 3.22
This property is honored for all source file types.
Previously it worked only for non-built files.
2020-08-30 11:54:41 +02:00
Takes a list of ``Key=Value`` pairs. Tells the Visual Studio generator to set
``Key`` to ``Value`` as item metadata on the file.
For example:
.. code-block:: cmake
set_property(SOURCE file.hlsl PROPERTY VS_SETTINGS "Key=Value" "Key2=Value2")
will set ``Key`` to ``Value`` and ``Key2`` to ``Value2`` on the
``file.hlsl`` item as metadata.
:manual:`Generator expressions <cmake-generator-expressions(7)>` are supported.