Skip to content

How to handle a library that will only build dynamically, in a static triplet? #20076

Answered by Osyotr
jdx-john asked this question in Q&A
Discussion options

You must be logged in to vote

In that case you should put vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) at the top of your portfile. See docs.

Example:
https://github.com/microsoft/vcpkg/blob/master/ports/qt5-webengine/portfile.cmake

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jdx-john
Comment options

Answer selected by jdx-john
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants