-
I've got my new port (https://github.com/alanxz/SimpleAmqpClient) to build on windows against the default I think I've seen before that some existing ports are DLL-only, but they still build (as DLL, with a warning) when you do a static build - is this possible? I can live with one library producing a DLL if it's just one. When I build that library manually using CMake, it seems happy to statically link its dependencies (basically boost and librabbitmqc) into the DLL but how can I configure this in a portfile? And for that matter, how can I explicitly set a C++ preprocessor value? I tried to use But I got error
So I thought maybe I can do:
But this just (I think) sets a CMake variable, not a preprocessor variable. I think it must be easy to do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In that case you should put Example: |
Beta Was this translation helpful? Give feedback.
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