https://github.com/Kitware/CMake
Raw File
Tip revision: 66f7d9e6e03f4b38bbd5e456fa32397d809f5bfb authored by Brad King on 12 June 2023, 17:24:29 UTC
CMake 3.27.0-rc2
Tip revision: 66f7d9e
CMAKE_VS_GLOBALS.rst
CMAKE_VS_GLOBALS
----------------

.. versionadded:: 3.13

List of ``Key=Value`` records to be set per target as target properties
:prop_tgt:`VS_GLOBAL_<variable>` with ``variable=Key`` and value ``Value``.

For example:

.. code-block:: cmake

  set(CMAKE_VS_GLOBALS
    "DefaultLanguage=en-US"
    "MinimumVisualStudioVersion=14.0"
    )

will set properties ``VS_GLOBAL_DefaultLanguage`` to ``en-US`` and
``VS_GLOBAL_MinimumVisualStudioVersion`` to ``14.0`` for all targets
(except for ``INTERFACE`` libraries).

This variable is meant to be set by a
:variable:`toolchain file <CMAKE_TOOLCHAIN_FILE>`.
back to top