Created
October 5, 2017 07:30
-
-
Save ShinNoNoir/454ffdbc798861e2b016ac0af25c45ab to your computer and use it in GitHub Desktop.
vcpkg utility: set environment vars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
set VCPKGROOT=%~dp0 | |
echo VCPKGROOT=%VCPKGROOT% | |
set TOOLCHAIN=%VCPKGROOT%scripts\buildsystems\vcpkg.cmake | |
echo TOOLCHAIN=%TOOLCHAIN% | |
FOR /D %%F IN (%VCPKGROOT%\downloads\cmake-*) DO ( | |
set CMAKEDIR=%%F\bin | |
goto break | |
) | |
:break | |
echo CMAKEDIR=%CMAKEDIR% | |
set PATH=%PATH%;%CMAKEDIR% | |
echo. | |
echo Use: cmake -DCMAKE_TOOLCHAIN_FILE=%%TOOLCHAIN%% | |
echo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Intended usage: Place
env.bat
invcpkg
's root.