How do I tell vcpkg which cmake to use #22505
Unanswered
Sand2Silicon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I specify which cmake '
vcpkg install
' should use? Both for Classic and Manifest modes, under Windows and Linux.We're setting up our project to use VCPkg in manifest mode. Both CMake and VCPkg are installed in the
project/3rdparty/
sub-folder, however when CMake runs, triggeringvcpkg install
, the program looks for CMake and finds the system CMake in PATH(*), and immediately fails.project/3rdparty/cmake/
project/3rdparty/vcpkg/
./3rdparty/cmake/3.x.y/[windows/linux]/bin/cmake
?vcpkg install
"?cmake --version
on the cmake executable I suggest, but I need it to skip searching PATH and version-checking anything it finds. How is this done?(*) Due to a bug I've reported #22041, when vcpkg calls 'cmake --version', if the system-installed version replies with "Cmake3 version x.y.z" vcpkg errors out (it expected "cmake version x.y.z"). So allowing it to bypass this check on $PATH/cmake is important.
Beta Was this translation helpful? Give feedback.
All reactions