package/pkg-cmake.mk: build host with shared libs
authorMichael Nosthoff <buildroot@heine.tech>
Wed, 16 Sep 2020 10:02:11 +0000 (12:02 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 17 Sep 2020 20:32:46 +0000 (22:32 +0200)
CMake offers the BUILD_SHARED_LIBS flag as a default parameter
and most packages honor them.
Similar to pkg-autotools.mk build host packages always with
BUILD_SHARED_LIBS=ON.

Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pkg-cmake.mk

index 57bfea9be5aa19ec2f4790854a78f1947b45467b..dc545caed95924706da904d92fbda18b80693593 100644 (file)
@@ -146,6 +146,7 @@ define $(2)_CONFIGURE_CMDS
                -DBUILD_TEST=OFF \
                -DBUILD_TESTS=OFF \
                -DBUILD_TESTING=OFF \
+               -DBUILD_SHARED_LIBS=ON \
                $$(CMAKE_QUIET) \
                $$($$(PKG)_CONF_OPTS) \
        )