How can I set VCPKG_INSTALLED_RIR
in CMake
#35850
GasimGasimzada
started this conversation in
General
Replies: 1 comment 1 reply
-
Pass to CMake: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an existing project in C++ that I am trying to port to CMake. I am already using vcpkg for managing all packages and I install all packages to
<repo>/vcpkg_installed
as a separate step. I run it once both during local development and in CI/CD pipeline, then I build my project. Now, when I set up my project to work with CMake (cmake . -B build
), I get a duplicatevcpkg_installed
located inside thebuild
directory. I want to change it so that my separate vcpkg installation step and cmake use the samevcpkg_installed
directory. This is especially useful if I want to recreate the build directory but do not want to rebuild all my Vcpkg dependencies again (even though they are cached, they still take time).Beta Was this translation helpful? Give feedback.
All reactions