From 2f7d893d782f9b8110808bf448497e4e04956e1a Mon Sep 17 00:00:00 2001
From: TheNumbat <mjslater@andrew.cmu.edu>
Date: Sat, 13 Feb 2021 12:24:32 -0500
Subject: [PATCH] change runcmake to scotty3d one

---
 runcmake_win.bat | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/runcmake_win.bat b/runcmake_win.bat
index 5578fd9..fd39383 100644
--- a/runcmake_win.bat
+++ b/runcmake_win.bat
@@ -1,5 +1,9 @@
+@echo off
+call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" > NUL 2> NUL
 mkdir build
-cd build
+pushd build
 cmake ..
-cd ..
-pause
+if "%1"=="configure" exit
+if [%1]==[] (cmake --build . --config RelWithDebInfo)
+if not [%1]==[] (cmake --build . --config %1)
+popd
\ No newline at end of file
-- 
GitLab