summaryrefslogtreecommitdiff
path: root/Help/prop_sf
diff options
context:
space:
mode:
authorMatt Davies <matthew.davies@sony.com>2020-03-27 15:40:43 +0000
committerBrad King <brad.king@kitware.com>2020-03-27 12:01:21 -0400
commit0723e04f7a13ca1b1ae5c4ef2c603b922bcf82e8 (patch)
tree66de081ad2b7fe2d3cdb2ee71c068b7265f3defe /Help/prop_sf
parent2ca1102f8347b0d25b476a9a785977f2dc8a812b (diff)
downloadcmake-0723e04f7a13ca1b1ae5c4ef2c603b922bcf82e8.tar.gz
VS: Add documentation for VS_SETTINGS and VS_SOURCE_SETTINGS_<tool>.
Diffstat (limited to 'Help/prop_sf')
-rw-r--r--Help/prop_sf/VS_SETTINGS.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Help/prop_sf/VS_SETTINGS.rst b/Help/prop_sf/VS_SETTINGS.rst
new file mode 100644
index 0000000000..07194067eb
--- /dev/null
+++ b/Help/prop_sf/VS_SETTINGS.rst
@@ -0,0 +1,18 @@
+VS_SETTINGS
+-----------
+
+Set any item metadata on a non-built file.
+
+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.
+
+Generator expressions are supported.