coin-or / qpOASES

Open-source C++ implementation of the recently proposed online active set strategy
GNU Lesser General Public License v2.1
360 stars 121 forks source link

Permit to compile qpOASES as a shared library in CMake #109

Closed traversaro closed 3 years ago

traversaro commented 3 years ago

This modification permits to compile qpOASES on Unix as a shared library, leaving the default compilation to static for backward compatibility. Enabling the BUILD_SHARED_LIBS option in CMake is explicitly disabled as visibility of symbols is not handled in the project, and using CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS (see https://blog.kitware.com/create-dlls-on-windows-without-declspec-using-new-cmake-export-all-feature/) is not working due to the use of some global variables (struct _iobuf * qpOASES::stdFile).

apotschka commented 3 years ago

Thanks a lot for fixing these CMake-related issues.

apotschka commented 3 years ago

@traversaro, please add your name to AUTHORS.txt. We really appreciate your contributions.