VS_SETTINGS — CMake 4.0.1 Documentation (original) (raw)

Added in version 3.18.

Set any item metadata on a file.

Added in version 3.22: This property is honored for all source file types. Previously it worked only for non-built files.

Takes a list of Key=Value pairs. Tells the Visual Studio generator to setKey to Value as item metadata on the file.

For example:

set_property(SOURCE file.hlsl PROPERTY VS_SETTINGS "Key=Value" "Key2=Value2")

will set Key to Value and Key2 to Value2 on thefile.hlsl item as metadata.

Generator expressions are supported.