mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 21:58:50 -05:00
2f3d945f83
Add a `version=` field to explicitly control the SDK version selection without relying on `CMAKE_SYSTEM_VERSION`. Fixes: #16713
10 lines
422 B
CMake
10 lines
422 B
CMake
if(actual_stdout MATCHES "CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION='([^']+)'")
|
|
set(actual_version "${CMAKE_MATCH_1}")
|
|
if(NOT "${actual_version}" STREQUAL "${expect_version}")
|
|
set(RunCMake_TEST_FAILED "Actual SDK version '${actual_version}' did not match expected '${expect_version}'")
|
|
return()
|
|
endif()
|
|
else()
|
|
set(RunCMake_TEST_FAILED "No CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION found in output.")
|
|
endif()
|