diff options
Diffstat (limited to 'share/cmake-3.22/Help/prop_tgt/COMMON_LANGUAGE_RUNTIME.rst')
-rw-r--r-- | share/cmake-3.22/Help/prop_tgt/COMMON_LANGUAGE_RUNTIME.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/share/cmake-3.22/Help/prop_tgt/COMMON_LANGUAGE_RUNTIME.rst b/share/cmake-3.22/Help/prop_tgt/COMMON_LANGUAGE_RUNTIME.rst new file mode 100644 index 0000000..adfa6f7 --- /dev/null +++ b/share/cmake-3.22/Help/prop_tgt/COMMON_LANGUAGE_RUNTIME.rst @@ -0,0 +1,24 @@ +COMMON_LANGUAGE_RUNTIME +----------------------- + +.. versionadded:: 3.12 + +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 +the value of ``COMMON_LANGUAGE_RUNTIME``: + +* property not set: native C++ (i.e. default) +* property set but empty: mixed unmanaged/managed C++ +* property set to any non empty value: managed C++ + +Supported values: ``""``, ``"pure"``, ``"safe"`` + +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` |