Reasoning for static library #48
-
|
Hello @burgholzer 👋 Thank you for your work on the repository! I realize that the QDMI library is a static library instead of a shared. Is there any particular reason for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hey 👋🏼 It is not fixed to be a static library. You can simply pass |
Beta Was this translation helpful? Give feedback.
Hey 👋🏼
It is not fixed to be a static library. You can simply pass
-DBUILD_SHARED_LIBS=ONto the CMake configure step and it will happily build a shared library.See https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html for more information.
This allows for quite some additional flexibility in the build system.
If it turns out we do not need that flexibility and we always want to build a shared library anyway, we can always add that back in.