2020-08-30 11:54:41 +02:00
|
|
|
CMAKE_DOTNET_TARGET_FRAMEWORK
|
|
|
|
-----------------------------
|
|
|
|
|
2021-09-14 00:13:48 +02:00
|
|
|
.. versionadded:: 3.17
|
|
|
|
|
2020-08-30 11:54:41 +02:00
|
|
|
Default value for :prop_tgt:`DOTNET_TARGET_FRAMEWORK` property of
|
|
|
|
targets.
|
|
|
|
|
|
|
|
This variable is used to initialize the
|
|
|
|
:prop_tgt:`DOTNET_TARGET_FRAMEWORK` property on all targets. See that
|
|
|
|
target property for additional information.
|
|
|
|
|
|
|
|
Setting ``CMAKE_DOTNET_TARGET_FRAMEWORK`` may be necessary
|
|
|
|
when working with ``C#`` and newer .NET framework versions to
|
|
|
|
avoid referencing errors with the ``ALL_BUILD`` CMake target.
|
|
|
|
|
|
|
|
This variable is only evaluated for :ref:`Visual Studio Generators`
|
|
|
|
VS 2010 and above.
|