+ if /I "%1" == "CodeBlocks" (\r
+ set CMAKE_GENERATOR="CodeBlocks - NMake Makefiles"\r
+ ) else if /I "%1" == "Eclipse" (\r
+ set CMAKE_GENERATOR="Eclipse CDT4 - NMake Makefiles"\r
+ ) else if /I "%1" == "Makefiles" (\r
+ set CMAKE_GENERATOR="NMake Makefiles"\r
+ ) else if /I "%1" == "VSSolution" (\r
+ set VS_SOLUTION=1\r
+ if "!VS_VERSION!" == "9" (\r
+ if "!ARCH!" == "amd64" (\r
+ set CMAKE_GENERATOR="Visual Studio 9 2008 Win64"\r
+ ) else (\r
+ set CMAKE_GENERATOR="Visual Studio 9 2008"\r
+ )\r
+ ) else if "!VS_VERSION!" == "10" (\r
+ if "!ARCH!" == "amd64" (\r
+ set CMAKE_GENERATOR="Visual Studio 10 Win64"\r
+ ) else (\r
+ set CMAKE_GENERATOR="Visual Studio 10"\r
+ )\r
+ ) else if "!VS_VERSION!" == "11" (\r
+ if "!ARCH!" == "amd64" (\r
+ set CMAKE_GENERATOR="Visual Studio 11 Win64"\r
+ ) else if "!ARCH!" == "arm" (\r
+ set CMAKE_GENERATOR="Visual Studio 11 ARM"\r
+ set CMAKE_GENERATOR_HOST="Visual Studio 11"\r
+ ) else (\r
+ set CMAKE_GENERATOR="Visual Studio 11"\r
+ )\r
+ ) else if "!VS_VERSION!" == "12" (\r
+ if "!ARCH!" == "amd64" (\r
+ set CMAKE_GENERATOR="Visual Studio 12 Win64"\r
+ ) else if "!ARCH!" == "arm" (\r
+ set CMAKE_GENERATOR="Visual Studio 12 ARM"\r
+ set CMAKE_GENERATOR_HOST="Visual Studio 12"\r
+ ) else (\r
+ set CMAKE_GENERATOR="Visual Studio 12"\r
+ )\r
+ ) else if "!VS_VERSION!" == "14" (\r
+ if "!ARCH!" == "amd64" (\r
+ set CMAKE_GENERATOR="Visual Studio 14 Win64"\r
+ ) else if "!ARCH!" == "arm" (\r
+ set CMAKE_GENERATOR="Visual Studio 14 ARM"\r
+ set CMAKE_GENERATOR_HOST="Visual Studio 14"\r
+ ) else (\r
+ set CMAKE_GENERATOR="Visual Studio 14"\r
+ )\r
+ )\r
+ ) else if /I "%1" == "RTC" (\r
+ echo Runtime checks enabled\r
+ set VS_RUNTIME_CHECKS=1\r
+ ) else (\r
+ goto continue\r
+ )\r