Option to declare that WinRT (/ZW) is used by default on platform
I have toolchain file for "yet another" proprietary platform that uses /ZW by default and a C project that I need to build to .dll. Cmake supports disabling WinRT mode for .c files but it does it only when either VS_WINRT_COMPONENT
global option is specified or when target platform is WindowsStore or WindowsPhone. I can't add VS_WINRT_COMPONENT
global option because of dependencies. So I need some toolchain-side way to tell cmake that /ZW is enabled.
I suggest to add global option VS_WINRT_BY_DEFAULT
by analogy with VS_WINRT_COMPONENT
(can do patch).
Any thoughts?