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

Set CMake library suffix for static libraries #31

Closed
khilangudka opened this issue Apr 26, 2018 · 0 comments
Closed

Set CMake library suffix for static libraries #31

khilangudka opened this issue Apr 26, 2018 · 0 comments

Comments

@khilangudka
Copy link
Member

khilangudka commented Apr 26, 2018

These CMake variables need to be set to ensure that CMake only finds static libraries when doing a static build:

set(CMAKE_SHARED_LIBRARY_SUFFIX ".a")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
set(CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES ".a")

@khilangudka khilangudka changed the title Set library suffix for static libraries Set CMake library suffix for static libraries Apr 26, 2018
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

No branches or pull requests

1 participant