From 0517e21cf20e0ba8534b344201956054f903d725 Mon Sep 17 00:00:00 2001
From: samatov.nail <samatov@developers.mail>
Date: Wed, 29 Dec 2010 19:26:20 +0300
Subject: [PATCH] fix: cannot build wxWidgets if sources are located at another disk

---
 xtra/wx-build/build-wxmsw.bat |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/xtra/wx-build/build-wxmsw.bat b/xtra/wx-build/build-wxmsw.bat
index 9ffe622..11b5870 100644
--- a/xtra/wx-build/build-wxmsw.bat
+++ b/xtra/wx-build/build-wxmsw.bat
@@ -18,7 +18,7 @@ copy /Y setup0-msw-2.8.h "%WX%\include\wx\setup.h"
 copy /Y setup0-msw-2.8.h "%WX%\include\wx\msw\setup.h"
 
 REM Convert projects if necessary
-cd %WX%\build\msw
+cd /D %WX%\build\msw
 del *.vcproj.user 2> NUL
 for %%f in (%WXBASE%) do (
    echo Checking %%f
@@ -43,10 +43,8 @@ echo Checking utils\wxrc
 del *.vcproj.user 2> NUL
 if not exist wxrc.vcproj vcbuild /nologo /upgrade wxrc.dsp
 
-cd %HERE%
-
 REM Now build them
-cd %WX%\build\msw
+cd /D %WX%\build\msw
 for %%b in (Debug Release) do (
    for %%f in (%WXBASE%) do (
       title Building project %%f, config %%b
@@ -73,7 +71,7 @@ cd ..\wxrc
 title Building project utils/wxrc, config Release
 vcbuild /nohtmllog /nologo wxrc.vcproj "Unicode Release"
 
-cd %HERE%
+cd /D %HERE%
 title "build-wx done."
 echo "build-wx done."
 
-- 
1.7.3.1.msysgit.0

