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.
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.