blob: 871e36e855d7bb69494571504111c2359d2f7bc5 [file] [log] [blame]
Ryan Prichard7aea7e92022-01-13 17:30:17 -08001VS_SETTINGS
2-----------
3
4.. versionadded:: 3.18
5
6Set any item metadata on a file.
7
8.. versionadded:: 3.22
9
10 This property is honored for all source file types.
11 Previously it worked only for non-built files.
12
13Takes a list of ``Key=Value`` pairs. Tells the Visual Studio generator to set
14``Key`` to ``Value`` as item metadata on the file.
15
16For example:
17
18.. code-block:: cmake
19
20 set_property(SOURCE file.hlsl PROPERTY VS_SETTINGS "Key=Value" "Key2=Value2")
21
22will set ``Key`` to ``Value`` and ``Key2`` to ``Value2`` on the
23``file.hlsl`` item as metadata.
24
25:manual:`Generator expressions <cmake-generator-expressions(7)>` are supported.