cmake-utils.eclass: Fix BUILD_SHARED_LIBS variable type
authorAlexander Tsoy <alexander@tsoy.me>
Sat, 2 Nov 2019 11:52:49 +0000 (12:52 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 11 Nov 2019 01:14:04 +0000 (02:14 +0100)
This fixes the following warning:

  CMake Warning (dev) at gentoo_common_config.cmake:8 (SET):
    implicitly converting 'BOOLEAN' to 'STRING' type.

Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/cmake-utils.eclass

index 109b584afb39eade4d808834646ab920bb392e16..e7a48116da7d879b236b2d71e4eab8cd10da49ef 100644 (file)
@@ -649,7 +649,7 @@ cmake-utils_src_configure() {
        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 "")
+                       SET (BUILD_SHARED_LIBS ON CACHE BOOL "")
                _EOF_
        fi