VS_SETTINGS.rst 518 B

1234567891011121314151617181920
  1. VS_SETTINGS
  2. -----------
  3. .. versionadded:: 3.18
  4. Set any item metadata on a non-built file.
  5. Takes a list of ``Key=Value`` pairs. Tells the Visual Studio generator to set
  6. ``Key`` to ``Value`` as item metadata on the file.
  7. For example:
  8. .. code-block:: cmake
  9. set_property(SOURCE file.hlsl PROPERTY VS_SETTINGS "Key=Value" "Key2=Value2")
  10. will set ``Key`` to ``Value`` and ``Key2`` to ``Value2`` on the
  11. ``file.hlsl`` item as metadata.
  12. :manual:`Generator expressions <cmake-generator-expressions(7)>` are supported.