symisc / unqlite

An Embedded NoSQL, Transactional Database Engine
https://unqlite.symisc.net
Other
2.11k stars 164 forks source link

Removed the STATIC key word to enable building a shared library #99

Closed mdorier closed 4 years ago

mdorier commented 4 years ago

The STATIC keyword in cmake's ADD_LIBRARY forces cmake to compile a static library even if the user requests a shared one by setting -DBUILD_SHARED_LIBS=ON. Building a static library is however already the default behavior of cmake, and some platforms need to be able to build a shared library, hence this PR.

symisc commented 4 years ago

Thanks!