cl 2>&1 | find "17.00." > NUL && set VS_VERSION=11\r
cl 2>&1 | find "18.00." > NUL && set VS_VERSION=12\r
cl 2>&1 | find "19.00." > NUL && set VS_VERSION=14\r
+ cl 2>&1 | find "19.10." > NUL && set VS_VERSION=15\r
if not defined VS_VERSION (\r
echo Error: Visual Studio version too old or version detection failed.\r
endlocal\r
) else (\r
set CMAKE_GENERATOR="Visual Studio 14"\r
)\r
+ ) else if "!VS_VERSION!" == "15" (\r
+ if "!ARCH!" == "amd64" (\r
+ set CMAKE_GENERATOR="Visual Studio 15 Win64"\r
+ ) else if "!ARCH!" == "arm" (\r
+ set CMAKE_GENERATOR="Visual Studio 15 ARM"\r
+ set CMAKE_GENERATOR_HOST="Visual Studio 15"\r
+ ) else (\r
+ set CMAKE_GENERATOR="Visual Studio 15"\r
+ )\r
)\r
) else if /I "%1" == "RTC" (\r
echo Runtime checks enabled\r