cmake/Help/prop_tgt/COMMON_LANGUAGE_RUNTIME.rst

42 lines
894 B
ReStructuredText
Raw Normal View History

2018-08-09 18:06:22 +02:00
COMMON_LANGUAGE_RUNTIME
-----------------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.12
2018-08-09 18:06:22 +02:00
By setting this target property, the target is configured to build with
``C++/CLI`` support.
The Visual Studio generator defines the ``clr`` parameter depending on
2023-05-23 16:38:00 +02:00
the value of the ``COMMON_LANGUAGE_RUNTIME`` target property:
2018-08-09 18:06:22 +02:00
2023-05-23 16:38:00 +02:00
Not Set (default)
2018-08-09 18:06:22 +02:00
2023-05-23 16:38:00 +02:00
Native C++.
``""`` (set but empty)
Mixed unmanaged/managed C++ using .NET Framework.
``netcore``
.. versionadded:: 3.26
Mixed unmanaged/managed C++ using .NET Core.
This required VS 2019's v142 toolset or higher.
``pure``
Managed C++.
``safe``
Managed C++.
2018-08-09 18:06:22 +02:00
This property is only evaluated :ref:`Visual Studio Generators` for
VS 2010 and above.
To be able to build managed C++ targets with VS 2017 and above the component
``C++/CLI support`` must be installed, which may not be done by default.
See also :prop_tgt:`IMPORTED_COMMON_LANGUAGE_RUNTIME`