mixing exported and installed libraries #24431
Unanswered
eladmaimoni
asked this question in
Q&A
Replies: 2 comments
-
I would look into |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi! I just faced the same question and my current solution is to tell cmake to look for packages also in the directory of VCPKG: #38463 |
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 have a cmake project that uses a vcpkg.json manifest file to manage its dependencies.
One of the dependencies - opencv4[contrib,cuda,nonfree] is particularly heavy to compile locally. Also, it seems that binary caching doesn't work that good for this library and vcpkg ends up compiling this library from scratch even if I have multiple instances of the project on the same workstation.
I would like to avoid having to compile this library.
My thought was to use vcpkg to export this library and then integrate it to the project somehow. However, this means I have to use 2 toolchain files - one for the cmake-vcpkg integration and one for the exported packages integration. So I tried using both toolchain files.
This created some nasty errors and conflicts. I guess this is not meant to work.
So can I somehow mix exported and non-exported (installed) packages? Or is there an alternative approach which might work better?
Beta Was this translation helpful? Give feedback.
All reactions