marian/vs/BuildRelease.bat

22 lines
469 B
Batchfile
Raw Normal View History

::
:: Usage: BuildRelease.bat [<build-directory>=.\build]
::
:: This script runs the dependency checks, generate the projects/makefiles and then
:: build the project in Release configuration.
::
::
2018-09-04 17:34:21 +03:00
@echo off
setlocal
set ROOT=%~dp0
set MARIAN_ROOT=%ROOT%..
2018-09-04 17:34:21 +03:00
set BUILD_ROOT=%1
if "%BUILD_ROOT%"=="" set BUILD_ROOT=%ROOT%build
call CreateVSProjects.bat %BUILD_ROOT%
2018-09-14 16:52:42 +03:00
if errorlevel 1 exit /b 1
2018-12-13 00:33:04 +03:00
cmake --build %BUILD_ROOT% --config Release
2018-09-14 16:52:42 +03:00
exit /b 0