CMake: Add option to build shared library#89
Conversation
Just added a new variable "BUILD_STATIC" to build libsoem statically or not. By default it will now build libsoem as shared library.
|
Our main use-case is to cross-compile SOEM for other architectures, most of which don't have shared libraries. An easy way to enable shared libraries would be useful but it should default to static libraries. Also, did you try building this on windows? It seems to fail there. |
|
Hey @hefloryd , first of all thank you for your feedback. I personally work in a pure Linux environment and already packaged here locally SOEM as an debian package. For me it makes sense to build it as an shared library and so far it works perfectly. I'm open for any discussion 😉 |
|
Building SOEM as shared lib would be a great feature. I have to edit the makefile manually every time. |
|
|
Just added a new variable "BUILD_STATIC" to build libsoem statically or not.
By default it will now build libsoem as shared library.