How do you install plugins when building with a static triplet? #48089
Unanswered
jpgaribotti
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a port that is structured as a library that can load plugins. The library itself can be built and linked either dynamically or statically, controlled by CMake's BUILD_SHARED_LIBS, but the plugins use
add_library(plugin-name MODULE)and so are always built as shared libraries. This is intended. Which plugins to load is decided at runtime, and they can't be statically linked.Using a triplet with
VCPKG_LIBRARY_LINKAGE=dynamicworks as expected, but when usingVCPKG_LIBRARY_LINKAGE=staticthe plugins are built (can be found in the bin/ folder in the port's buildtree location) but they're not installed into the dependent project.Is this behavior by design? How can I copy the plugins (shared libraries) created during a static build?
Beta Was this translation helpful? Give feedback.
All reactions