Failed generating 2017 sln with -T v141_xp,version=14.15
I have Visual Studio 2017 19.5.15 (toolset 14.16 and 14.15) and cmake-3.15.2-win64-x64. I tried to generate sln from my project:
cmake.exe "C:\test" -G"Visual Studio 15 Win64" -T v141_xp,version=14.15
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17134. CMake Error at CMakeLists.txt:52 (ENABLE_LANGUAGE): Generator
Visual Studio 15 2017 Win64
given toolset and version specification
v141_xp,version=14.15
contains an invalid version specification.
-- The C compiler identification is MSVC 19.16.27032.1 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe CMake Error at CMakeLists.txt:3 (project): Generator
Visual Studio 15 2017 Win64
given toolset and version specification
v141_xp,version=14.15
contains an invalid version specification.
CMake Error at third_party/cmake-win32-x86/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:44 (try_compile): Failed to configure test project build system. Call Stack (most recent call first): CMakeLists.txt:52 (ENABLE_LANGUAGE)
-- Configuring incomplete, errors occurred!
I have some RnD and the result was small patch witch fixes the problemcmake_xp.diff