[CMAKE]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 20 Oct 2011 14:53:02 +0000 (14:53 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 20 Oct 2011 14:53:02 +0000 (14:53 +0000)
- Add VC11 support in configure.cmd

svn path=/trunk/; revision=54213

reactos/configure.cmd

index 75c5a07..514047b 100755 (executable)
@@ -38,6 +38,7 @@ if defined ROS_ARCH (
     cl 2>&1 | find "14." > NUL && set BUILD_ENVIRONMENT=VS8\r
     cl 2>&1 | find "15." > NUL && set BUILD_ENVIRONMENT=VS9\r
     cl 2>&1 | find "16." > NUL && set BUILD_ENVIRONMENT=VS10\r
+    cl 2>&1 | find "17." > NUL && set BUILD_ENVIRONMENT=VS11\r
     if not defined BUILD_ENVIRONMENT (\r
         echo Error: Visual Studio version too old or version detection failed.\r
         exit /b\r
@@ -63,6 +64,12 @@ if defined ROS_ARCH (
             ) else (\r
                 set CMAKE_GENERATOR="Visual Studio 10"\r
             )\r
+        ) else if "%BUILD_ENVIRONMENT%" == "VS11" (\r
+            if "%ARCH%" == "amd64" (\r
+                set CMAKE_GENERATOR="Visual Studio 11 Win64"\r
+            ) else (\r
+                set CMAKE_GENERATOR="Visual Studio 11"\r
+            )\r
         )\r
     ) else (\r
         set USE_NMAKE=1\r