remove conan.
This commit is contained in:
21
BuildRel.bat
21
BuildRel.bat
@@ -1,32 +1,23 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
where conan >nul 2>nul
|
||||
where cmake >nul 2>nul
|
||||
if errorlevel 1 (
|
||||
echo conan not installed, pip install conan
|
||||
echo cmake not installed.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
conan install . -s build_type=Release --build=missing
|
||||
cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake -DCMAKE_BUILD_TYPE=Release
|
||||
if errorlevel 1 (
|
||||
echo install package failed.
|
||||
config failed.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
call %~dp0build\Release\generators\conanbuild.bat
|
||||
cmake --preset=conan-release
|
||||
cmake --build build --config Release
|
||||
if errorlevel 1 (
|
||||
echo config failed.
|
||||
cd ..
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
cmake --build --preset=conan-release
|
||||
if errorlevel 1 (
|
||||
echo build failed.
|
||||
cd ..
|
||||
build failed.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user