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? |
Answered by
burgholzer
Aug 9, 2024
Replies: 1 comment 2 replies
|
Hey 👋🏼 It is not fixed to be a static library. You can simply pass |
2 replies
Answer selected by
kayaercument
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.