* Many upstreams build static libraries by default, as this is
simpler for distribution. Developers can still override this
variable if required.
Examples:
https://github.com/pezmaster31/bamtools/blob/master/CMakeLists.txt#L64
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
if [[ ${EAPI} != [56] ]]; then
cat >> "${common_config}" <<- _EOF_ || die
SET (CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "")
+ SET (BUILD_SHARED_LIBS ON CACHE BOOLEAN "")
_EOF_
fi