Possible to have different projects with different vcpkg.json and share a common package folder (x-packages-root) #34410
runarundheim
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
The packages dir is just a staging area, and helpful in case of package build errors. If you are concerned about disk space, use |
Beta Was this translation helpful? Give feedback.
2 replies
-
If you want to share an installation root, use classic mode, not manifest mode. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would be nice if it was possible to have a common package folder for all projects in the build job. In the attached zip file there are a solution with two projects with (vcpkg packages):
Microsoft Visual Studio Version 17.8.0 Preview 3.0 (with 'vcpkg package manager' installed) is used to build it.
The project is set up to share the x-package-root. When the main is build it will delete icu content in package folder and copy it again. The problem with it are that the hardlink created will then be normal files. So it will take more disk space. The packages used in this example are small, but if it changes to use qt then they will be very big.
I would prefer if it is possible to use the x-packages-root or another argument to set a common package folder. Then it could be possible to have hardlink for the files used in the x-install-root and that folder could be private for the project.
Vcpkg_test.zip
Beta Was this translation helpful? Give feedback.
All reactions