mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 13:56:00 +00:00
dd11ae8f0f
The MSVC /ZW flag is valid only for C++ sources. Whenever we enable CompileAsWinRT for the whole target, disable it for all C sources. Update the documentation of VS_WINRT_COMPONENT to drop the statement about undefined behavior for non-C++ sources, because it is now defined as expected.
12 lines
426 B
ReStructuredText
12 lines
426 B
ReStructuredText
VS_WINRT_COMPONENT
|
|
------------------
|
|
|
|
Mark a target as a Windows Runtime component for the Visual Studio generator.
|
|
Compile the target with ``C++/CX`` language extensions for Windows Runtime.
|
|
For ``SHARED`` and ``MODULE`` libraries, this also defines the
|
|
``_WINRT_DLL`` preprocessor macro.
|
|
|
|
.. note::
|
|
Currently this is implemented only by Visual Studio generators.
|
|
Support may be added to other generators in the future.
|