Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

traversaro
Copy link
Contributor

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 apotschka merged commit 3636252 into coin-or:master Mar 8, 2021
@apotschka
Copy link
Contributor

Thanks a lot for fixing these CMake-related issues.

@apotschka
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants