Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

rebuild.cmd #20

Closed
eulesv opened this issue Jul 2, 2017 · 0 comments
Closed

rebuild.cmd #20

eulesv opened this issue Jul 2, 2017 · 0 comments

Comments

@eulesv
Copy link

eulesv commented Jul 2, 2017

I like the new rebuild.cmd file but it assumes VS2015 maybe you could add something like this:
`@echo off

if not EXIST build goto :mkbuild

rd /s /q build
if ERRORLEVEL 1 goto :nodelete

:mkbuild
mkdir build
if ERRORLEVEL 1 goto :nodelete

cd build

set /p vs="Enter your Visual Studio version (2015/2017): "
if %vs% == 2017 goto :2017

cmake -G "Visual Studio 14 2015 Win64" -DPROCESSOR_HINT=haswell ..
if ERRORLEVEL 1 goto :nocmake
goto :build

:2017
cmake -G "Visual Studio 15 2017 Win64" -DPROCESSOR_HINT=haswell ..

:build
cmake --build . --config RelWithDebInfo
if ERRORLEVEL 1 goto :builderror

cmake --build . --target _ELL_python --config RelWithDebInfo

goto :eof

:nodelete
echo Error deleting 'build' folder, is it locked?
goto :eof

:nocmake
echo cmake step failed
goto :eof

:builderror`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant