瀏覽代碼

Cleaned up cmake_vs20xx.bat.

Wei Tjong Yao 12 年之前
父節點
當前提交
f69e7579d7
共有 3 個文件被更改,包括 3 次插入6 次删除
  1. 1 2
      cmake_vs2008.bat
  2. 1 2
      cmake_vs2010.bat
  3. 1 2
      cmake_vs2012.bat

+ 1 - 2
cmake_vs2008.bat

@@ -1,4 +1,3 @@
 @del /F CMakeCache.txt
 @del /F CMakeCache.txt
-@set "arch="
-@if "%1" == "Win64" set "arch= %1"
+@if "%1" == "Win64" (set "arch= %1") else (set "arch=")
 cmake -G "Visual Studio 9 2008%arch%"
 cmake -G "Visual Studio 9 2008%arch%"

+ 1 - 2
cmake_vs2010.bat

@@ -1,4 +1,3 @@
 @del /F CMakeCache.txt
 @del /F CMakeCache.txt
-@set "arch="
-@if "%1" == "Win64" set "arch= %1"
+@if "%1" == "Win64" (set "arch= %1") else (set "arch=")
 cmake -G "Visual Studio 10%arch%"
 cmake -G "Visual Studio 10%arch%"

+ 1 - 2
cmake_vs2012.bat

@@ -1,4 +1,3 @@
 @del /F CMakeCache.txt
 @del /F CMakeCache.txt
-@set "arch="
-@if "%1" == "Win64" set "arch= %1"
+@if "%1" == "Win64" (set "arch= %1") else (set "arch=")
 cmake -G "Visual Studio 11%arch%"
 cmake -G "Visual Studio 11%arch%"