diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2014-08-11 18:21:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-21 13:28:20 (GMT) |
commit | cb1aceed8ceb29d5f01f6444133060e603297fec (patch) | |
tree | b3957663dbf5fa324b165a2b9f1c28b6710f46c8 /Help/prop_tgt/VS_WINRT_COMPONENT.rst | |
parent | 401269e43b49ce25e247efb1fa3503b32eafa411 (diff) | |
download | CMake-cb1aceed8ceb29d5f01f6444133060e603297fec.zip CMake-cb1aceed8ceb29d5f01f6444133060e603297fec.tar.gz CMake-cb1aceed8ceb29d5f01f6444133060e603297fec.tar.bz2 |
VS: Add VS_WINRT_COMPONENT property to enable CompileAsWinRT
Deprecate VS_WINRT_EXTENSIONS and document VS_WINRT_COMPONENT as for VS
generators only. Also define _WINRT_DLL in SHARED libraries in order to
get a .lib produced.
Inspired-by: Paul Annetts <paul@lightunobscured.com>
Diffstat (limited to 'Help/prop_tgt/VS_WINRT_COMPONENT.rst')
-rw-r--r-- | Help/prop_tgt/VS_WINRT_COMPONENT.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Help/prop_tgt/VS_WINRT_COMPONENT.rst b/Help/prop_tgt/VS_WINRT_COMPONENT.rst new file mode 100644 index 0000000..a017f0e --- /dev/null +++ b/Help/prop_tgt/VS_WINRT_COMPONENT.rst @@ -0,0 +1,14 @@ +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:: + Behavior is not defined for targets with source files that compile as + any language other than ``CXX``. + + Currently this is implemented only by Visual Studio generators. + Support may be added to other generators in the future. |