summaryrefslogtreecommitdiff
path: root/Help/variable/CMAKE_VS_GLOBALS.rst
diff options
context:
space:
mode:
authorMikhail Korolev <stilriv@gmail.com>2018-09-21 14:23:22 +0300
committerBrad King <brad.king@kitware.com>2018-09-25 09:20:25 -0400
commit22e670a3062869e3014455563d800c72f35d9e4f (patch)
tree6f228ae2dad2b3625d353961ffb6c89456a38372 /Help/variable/CMAKE_VS_GLOBALS.rst
parent227b2be9d6a77efd95c4e99aab8e6255cb95a380 (diff)
downloadcmake-22e670a3062869e3014455563d800c72f35d9e4f.tar.gz
VS: Add option to set VS_GLOBAL_* for all targets
Fixes: #18287
Diffstat (limited to 'Help/variable/CMAKE_VS_GLOBALS.rst')
-rw-r--r--Help/variable/CMAKE_VS_GLOBALS.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_VS_GLOBALS.rst b/Help/variable/CMAKE_VS_GLOBALS.rst
new file mode 100644
index 0000000000..83777b619f
--- /dev/null
+++ b/Help/variable/CMAKE_VS_GLOBALS.rst
@@ -0,0 +1,21 @@
+CMAKE_VS_GLOBALS
+----------------
+
+List of ``Key=Value`` records to be set per target as target properties
+:prop_tgt:`VS_GLOBAL_<variable>` with ``variable=Key`` and value ``Value``.
+
+For example:
+
+.. code-block:: cmake
+
+ set(CMAKE_VS_GLOBALS
+ "DefaultLanguage=en-US"
+ "MinimumVisualStudioVersion=14.0"
+ )
+
+will set properties ``VS_GLOBAL_DefaultLanguage`` to ``en-US`` and
+``VS_GLOBAL_MinimumVisualStudioVersion`` to ``14.0`` for all targets
+(except for ``INTERFACE`` libraries).
+
+This variable is meant to be set by a
+:variable:`toolchain file <CMAKE_TOOLCHAIN_FILE>`.