-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
14 lines (12 loc) · 719 Bytes
/
Copy pathbuild.bat
File metadata and controls
14 lines (12 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@echo off
set "VSPATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
if not exist "%VSPATH%" set "VSPATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
if not exist "%VSPATH%" set "VSPATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
if not exist "%VSPATH%" set "VSPATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise"
if %VisualStudioVersion%. == . call "%VSPATH%\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
if not exist build mkdir build
pushd build
cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=.. ..
if errorlevel 1 exit /b 1
cmake --build . --config Release
popd