diff --git a/build_all.bat b/build_all.bat index d5e876c..5493d4a 100644 --- a/build_all.bat +++ b/build_all.bat @@ -49,11 +49,9 @@ set dev="" for /f "tokens=1,2,* " %%i in ('reg QUERY "HKEY_CLASSES_ROOT\CLSID\{2E1517DA-87BF-4443-984A-D2BF18F5A908}\LocalServer32" /ve') do set dev=%%k echo dev=%dev% -if %dev% == "" ( - echo "Can not find Visual-Studio installing path" - goto end +if %dev% NEQ "" ( + call %dev%\..\..\..\vc\auxiliary\build\vcvars64.bat ) -call %dev%\..\..\..\vc\auxiliary\build\vcvars64.bat diff --git a/build_base.bat b/build_base.bat index be69984..401b975 100644 --- a/build_base.bat +++ b/build_base.bat @@ -70,13 +70,10 @@ set dev="" for /f "tokens=1,2,* " %%i in ('reg QUERY "HKEY_CLASSES_ROOT\CLSID\{2E1517DA-87BF-4443-984A-D2BF18F5A908}\LocalServer32" /ve') do set dev=%%k echo dev=%dev% -if %dev% == "" ( - echo "Can not find Visual-Studio installing path" - goto end +if %dev% NEQ "" ( + call %dev%\..\..\..\vc\auxiliary\build\vcvars64.bat ) :env -call %dev%\..\..\..\vc\auxiliary\build\vcvars64.bat - rem ----------------------------------------------------------------------------------------------------------------------------------- diff --git a/build_ds.bat b/build_ds.bat index 9780ce1..ea20725 100644 --- a/build_ds.bat +++ b/build_ds.bat @@ -82,13 +82,10 @@ set dev="" for /f "tokens=1,2,* " %%i in ('reg QUERY "HKEY_CLASSES_ROOT\CLSID\{2E1517DA-87BF-4443-984A-D2BF18F5A908}\LocalServer32" /ve') do set dev=%%k echo dev=%dev% -if %dev% == "" ( - echo "Can not find Visual-Studio installing path" - goto end +if %dev% NEQ "" ( + call %dev%\..\..\..\vc\auxiliary\build\vcvars64.bat ) :env -call %dev%\..\..\..\vc\auxiliary\build\vcvars64.bat - rem -----------------------------------------------------------------------------------------------------------------------------------