-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
You cannot mix triplets! You cannot select triplets by setting To use a custom combination of static/dynamic libraries you need to write your own triplet (provided via overlay triplets) and apply per port customization |
Beta Was this translation helpful? Give feedback.
-
I have a variant on this issue. I have a large project but it boils down to the following. In one project I want to use the static version of a vckpg package in my case pugixml so Note both projects are completely independent and we have good reasons to want to do this. At present we don't use vcpkg for situations like this because of the design decisions that seem to make this impossible, which is a great shame. |
Beta Was this translation helpful? Give feedback.
-
How can I do static and dynamic same time in vcpkg.json?? |
Beta Was this translation helpful? Give feedback.
I seem to have figured out how to do it
I need to create a folder with any name (
triplets-custom
for example) and put inx86-windows-boost-locale-static.cmake
with the following contents
Then you need to use
vcpkg install boost-locale:x86-windows-boost-locale-static --overlay-triplets=triplets-custom
vcpkg install openssl:x86-windows-boost-locale-static --overlay-triplets=triplets-custom
command builds the libraries (where
openssl
is a dynamic library andboost-locale
is built as a static library).F…