forked from pedro-vicente/lib_netsockets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbld.bat
More file actions
18 lines (16 loc) · 617 Bytes
/
bld.bat
File metadata and controls
18 lines (16 loc) · 617 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo off
if not defined DevEnvDir (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
if errorlevel 1 goto :eof
)
set MSVC_VERSION="Visual Studio 16 2019"
echo using %MSVC_VERSION%
set root=%cd%
:: replace the character string '\' with '/' needed for cmake
set root_cmake=%root:\=/%
echo cmake root is %root_cmake%
rm -rf CMakeCache.txt CMakeFiles
cmake -H. -Bbuild -G "Visual Studio 16 2019" ^
-A x64 ^
-G %MSVC_VERSION%
msbuild %root%\build\lib_netsockets.sln /target:build /property:configuration=debug /property:Platform=x64 /nologo /verbosity:minimal