mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
Merge topic 'fix-vs-winrt-by-default'
557ea4614eVS: Change CMAKE_VS_WINRT_BY_DEFAULT to not implicitly enable WinRT7bcef355bfVs: Add test for VS_WINRT_BY_DEFAULT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4127
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
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``).
|
||||
Inform :ref:`Visual Studio Generators` for VS 2010 and above that the
|
||||
target platform enables WinRT compilation by default and it needs to
|
||||
be explicitly disabled if ``/ZW`` or :prop_tgt:`VS_WINRT_COMPONENT` is
|
||||
omitted (as opposed to enabling it when either of those options is
|
||||
present)
|
||||
|
||||
This makes cmake configuration consistent in terms of WinRT among
|
||||
platforms - if you did not enable the WinRT compilation explicitly, it
|
||||
will be disabled (by either not enabling it or explicitly disabling it)
|
||||
|
||||
Note: WinRT compilation is always explicitly disabled for C language
|
||||
source files, even if it is expliclty enabled for a project
|
||||
|
||||
This variable is meant to be set by a
|
||||
:variable:`toolchain file <CMAKE_TOOLCHAIN_FILE>` for such platforms.
|
||||
|
||||
Reference in New Issue
Block a user