summaryrefslogtreecommitdiffstats
path: root/Help
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
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')
-rw-r--r--Help/manual/cmake-variables.7.rst1
-rw-r--r--Help/variable/CMAKE_VS_WINRT_BY_DEFAULT.rst8
2 files changed, 9 insertions, 0 deletions
diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7.rst
index 4ddbfe5..3eea8a2 100644
--- a/Help/manual/cmake-variables.7.rst
+++ b/Help/manual/cmake-variables.7.rst
@@ -401,6 +401,7 @@ Variables that Control the Build
/variable/CMAKE_VS_SDK_LIBRARY_WINRT_DIRECTORIES
/variable/CMAKE_VS_SDK_REFERENCE_DIRECTORIES
/variable/CMAKE_VS_SDK_SOURCE_DIRECTORIES
+ /variable/CMAKE_VS_WINRT_BY_DEFAULT
/variable/CMAKE_WIN32_EXECUTABLE
/variable/CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
/variable/CMAKE_XCODE_ATTRIBUTE_an-attribute
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.