Ryan Prichard | 7aea7e9 | 2022-01-13 17:30:17 -0800 | [diff] [blame] | 1 | VS_SETTINGS |
| 2 | ----------- |
| 3 | |
| 4 | .. versionadded:: 3.18 |
| 5 | |
| 6 | Set 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 | |
| 13 | Takes a list of ``Key=Value`` pairs. Tells the Visual Studio generator to set |
| 14 | ``Key`` to ``Value`` as item metadata on the file. |
| 15 | |
| 16 | For example: |
| 17 | |
| 18 | .. code-block:: cmake |
| 19 | |
| 20 | set_property(SOURCE file.hlsl PROPERTY VS_SETTINGS "Key=Value" "Key2=Value2") |
| 21 | |
| 22 | will 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. |