[msvc/make.bat] Detect spaces in the build path and error out.
authorlazydodo <github@lazydodo.com>
Tue, 1 Nov 2016 21:30:12 +0000 (15:30 -0600)
committerlazydodo <github@lazydodo.com>
Tue, 1 Nov 2016 21:30:12 +0000 (15:30 -0600)
make.bat

index c7f2dbbf369c377b455f7b1dff77bd39a57db12a..74148e5599d4bc36f12eedc26c8351c9d21ac23f 100644 (file)
--- a/make.bat
+++ b/make.bat
@@ -4,6 +4,11 @@ REM This is for users who like to configure & build Blender with a single comman
 
 setlocal ENABLEEXTENSIONS
 set BLENDER_DIR=%~dp0
+set BLENDER_DIR_NOSPACES=%BLENDER_DIR: =%
+if not "%BLENDER_DIR%"=="%BLENDER_DIR_NOSPACES%" ( 
+       echo There are spaces detected in the build path "%BLENDER_DIR%", this is currently not supported, exiting.... 
+       goto EOF
+)
 set BUILD_DIR=%BLENDER_DIR%..\build_windows
 set BUILD_TYPE=Release
 rem reset all variables so they do not get accidentally get carried over from previous builds