summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorMikhail Korolev <stilriv@gmail.com>2018-08-28 18:14:12 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-30 16:46:57 (GMT)
commite78a0c8e8a0b002a1e0e71672efcf96418c3a26d (patch)
treedd951c2102c51545195b6e5e8c93bead8201acdb /Help/variable
parentc549deed7fc6dec2c3f5f3ab5f9ded1acb916239 (diff)
downloadCMake-e78a0c8e8a0b002a1e0e71672efcf96418c3a26d.zip
CMake-e78a0c8e8a0b002a1e0e71672efcf96418c3a26d.tar.gz
CMake-e78a0c8e8a0b002a1e0e71672efcf96418c3a26d.tar.bz2
VS: Add option to tell generator that platfrom is WinRT by default
Create a ``CMAKE_VS_WINRT_BY_DEFAULT`` variable to indicate this. Fixes: #18286
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_VS_WINRT_BY_DEFAULT.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_VS_WINRT_BY_DEFAULT.rst b/Help/variable/CMAKE_VS_WINRT_BY_DEFAULT.rst
new file mode 100644
index 0000000..2ba8fe2
--- /dev/null
+++ b/Help/variable/CMAKE_VS_WINRT_BY_DEFAULT.rst
@@ -0,0 +1,8 @@
+CMAKE_VS_WINRT_BY_DEFAULT
+-------------------------
+
+Tell :ref:`Visual Studio Generators` for VS 2010 and above that the
+target platform compiles as WinRT by default (compiles with ``/ZW``).
+
+This variable is meant to be set by a
+:variable:`toolchain file <CMAKE_TOOLCHAIN_FILE>` for such platforms.