Browse Source

On Windows, clean also Build/CMakeFiles directory to ensure MinGW build variables do not spill over to a subsequent MSVC build.

Lasse Öörni 12 years ago
parent
commit
402a027ae4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cmake_clean.bat

+ 2 - 1
cmake_clean.bat

@@ -27,6 +27,7 @@ if exist Build\CMakeCache.txt. del /F Build\CMakeCache.txt
 if exist android-Build\CMakeCache.txt. del /F android-Build\CMakeCache.txt
 if exist Source\Android\CMakeCache.txt. del /F Source\Android\CMakeCache.txt
 
-:: For Android build, need to clean the CMakeFiles as well
+:: Clean CMakeFiles directories
+if exist Build\CMakeFiles. rd /S /Q Build\CMakeFiles
 if exist android-Build\CMakeFiles. rd /S /Q android-Build\CMakeFiles
 if exist Source\Android\CMakeFiles. rd /S /Q Source\Android\CMakeFiles