mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
11 lines
445 B
Batchfile
11 lines
445 B
Batchfile
@if not defined _echo echo off
|
|
|
|
for /f "usebackq tokens=*" %%i in (`vswhere.exe -latest -products * -requires Microsoft.VisualStudio.Component.VC.CMake.Project -property installationPath`) do (
|
|
if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (
|
|
"%%i\VC\Auxiliary\Build\vcvarsall.bat" %1
|
|
cd /D %2
|
|
cmake -DCMAKE_C_COMPILER_WORKS=TRUE -DCMAKE_CXX_COMPILER_WORKS=TRUE --preset=%3
|
|
cmake --build --preset=%3
|
|
)
|
|
)
|