[msvc/make.bat] Detect spaces in the build path and error out.

This commit is contained in:
Ray molenkamp 2016-11-01 15:30:12 -06:00
parent 13ee9b8ebe
commit f94a460397
Notes: blender-bot 2023-02-14 10:29:30 +01:00
Referenced by issue #49936, Cycles point density get's it's bounding box from basis shape key, which results in wrong renders ('block')
Referenced by issue #49916, Regression OpenCL doesn't build anymore
1 changed files with 5 additions and 0 deletions

View File

@ -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