 -cmake -G "Visual Studio 8 2005 Win64"
 +cmake -G "Visual Studio 8 2005 Win64" -DCMAKE_BUILD_TYPE=%1
  copy cmakecache.txt win\vs8cache.txt
+
+diff -Nur old/build-vs9.bat new/build-vs9.bat
+--- win/build-vs9.bat.orig	2008-11-17 14:07:18 -06:00
++++ win/build-vs9.bat		2009-03-21 03:45:34 -05:00
+@@ -14,5 +14,5 @@
+ REM You should have received a copy of the GNU General Public License
+ REM along with this program; if not, write to the Free Software
+ REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+-cmake -G "Visual Studio 9 2008"
++cmake -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=%1
+
+diff -Nur old/build-vs9_x64.bat new/build-vs9_x64.bat
+--- win/build-vs9_x64.bat.orig	2008-11-17 14:07:18 -06:00
++++ win/build-vs9_x64.bat	2009-03-21 03:45:42 -05:00
+@@ -14,5 +14,5 @@
+ REM You should have received a copy of the GNU General Public License
+ REM along with this program; if not, write to the Free Software
+ REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+-cmake -G "Visual Studio 9 2008 Win64"
++cmake -G "Visual Studio 9 2008 Win64" -DCMAKE_BUILD_TYPE=%1

-cmake -G "Visual Studio 8 2005"
+cmake -G "Visual Studio 8 2005" -DCMAKE_BUILD_TYPE=%1
 copy cmakecache.txt win\vs8cache.txt
diff -Nur win/build-vs8_x64.bat.orig win/build-vs8_x64.bat
--- win/build-vs8_x64.bat.orig	2008-08-20 10:21:59 -05:00
+++ win/build-vs8_x64.bat	2008-10-27 10:53:11 -05:00

diff -Nur sql/CMakeLists.txt.orig sql/CMakeLists.txt
--- sql/CMakeLists.txt.orig	2008-10-03 12:25:41 -05:00
+++ sql/CMakeLists.txt	2008-09-24 03:58:19 -05:00
@@ -98,6 +98,15 @@
                       LINK_FLAGS  "/PDB:${CMAKE_CFG_INTDIR}/mysqld${MYSQLD_EXE_SUFFIX}.pdb")
 ENDIF(cmake_version EQUAL 20406)
 
