mirror of
https://github.com/reactos/CMake.git
synced 2024-12-11 13:24:58 +00:00
fee011946e
Define a `CMAKE_WINDOWS_KITS_10_DIR` environment variable to allow users to tell CMake about a custom Windows 10 SDK directory. We choose to make this an environment variable rather than a CMake variable or cache entry because: * Using a custom directory also requires custom external MSBuild configuration. Therefore users are already configuring a custom environment. * The custom directory must be set consistently in all parts of a build including nested projects. An environment variable avoids requiring users to thread the setting into nested builds. Fixes: #16743
18 lines
841 B
ReStructuredText
18 lines
841 B
ReStructuredText
CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
|
|
----------------------------------------
|
|
|
|
Visual Studio Windows Target Platform Version.
|
|
|
|
When targeting Windows 10 and above Visual Studio 2015 and above support
|
|
specification of a target Windows version to select a corresponding SDK.
|
|
The :variable:`CMAKE_SYSTEM_VERSION` variable may be set to specify a
|
|
version. Otherwise CMake computes a default version based on the Windows
|
|
SDK versions available. The chosen Windows target version number is provided
|
|
in ``CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION``. If no Windows 10 SDK
|
|
is available this value will be empty.
|
|
|
|
One may set a ``CMAKE_WINDOWS_KITS_10_DIR`` *environment variable*
|
|
to an absolute path to tell CMake to look for Windows 10 SDKs in
|
|
a custom location. The specified directory is expected to contain
|
|
``Include/10.0.*`` directories.
|