Skip to content

Commit

Permalink
Allow to build with alternate vcpkg.exe by respecting VCPKG_ROOT vari…
Browse files Browse the repository at this point in the history
…able (#730)
  • Loading branch information
maxgolov authored May 8, 2021
1 parent 5a97750 commit 4027edb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if ("%CMAKE_ARCH%"=="") (
)

REM Use preinstalled vcpkg if installed or use our local
if "%VCPKG_INSTALLATION_ROOT%" neq "" (
set "VCPKG_CMAKE=%VCPKG_INSTALLATION_ROOT%\scripts\buildsystems\vcpkg.cmake"
if "%VCPKG_ROOT%" neq "" (
set "VCPKG_CMAKE=%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake"
) else (
set "VCPKG_CMAKE=%CD%\vcpkg\scripts\buildsystems\vcpkg.cmake"
)
Expand Down
1 change: 1 addition & 0 deletions tools/setup-buildtools.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off
set "PATH=%ProgramFiles%\CMake\bin;%~dp0;%~dp0vcpkg;%PATH%"
if "%VCPKG_ROOT%" NEQ "" set "PATH=%VCPKG_ROOT%;%PATH%"
pushd %~dp0

net session >nul 2>&1
Expand Down

0 comments on commit 4027edb

Please sign in to comment.