package/pkg-cmake.mk: globally disable doc, examples and tests
authorSamuel Martin <s.martin49@gmail.com>
Sun, 19 Oct 2014 18:04:37 +0000 (20:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Oct 2014 16:02:46 +0000 (17:02 +0100)
This patch globally disables doc, examples and tests build for both the
target and host packages.

If needed, these configure flags can be overloaded in the per-package
*_CONF_OPTS variables.

This makes the cmake-package infrastructure even closer to the autotools
one.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-cmake.mk

index 92574e2d8837ae662d5af1bd5582521e1d8938b7..3c5d4fe263fb0d22a6d16a10a55709ded2b1591b 100644 (file)
@@ -66,6 +66,12 @@ define $(2)_CONFIGURE_CMDS
                -DCMAKE_BUILD_TYPE=$$(if $$(BR2_ENABLE_DEBUG),Debug,Release) \
                -DCMAKE_INSTALL_PREFIX="/usr" \
                -DCMAKE_COLOR_MAKEFILE=OFF \
+               -DBUILD_DOC=OFF \
+               -DBUILD_DOCS=OFF \
+               -DBUILD_EXAMPLE=OFF \
+               -DBUILD_EXAMPLES=OFF \
+               -DBUILD_TEST=OFF \
+               -DBUILD_TESTS=OFF \
                -DBUILD_TESTING=OFF \
                -DBUILD_SHARED_LIBS=$$(if $$(BR2_PREFER_STATIC_LIB),OFF,ON) \
                -DUSE_CCACHE=$$(if $$(BR2_CCACHE),ON,OFF) \
@@ -89,6 +95,12 @@ define $(2)_CONFIGURE_CMDS
                -DCMAKE_C_FLAGS="$$(HOST_CFLAGS)" \
                -DCMAKE_CXX_FLAGS="$$(HOST_CXXFLAGS)" \
                -DCMAKE_EXE_LINKER_FLAGS="$$(HOST_LDFLAGS)" \
+               -DBUILD_DOC=OFF \
+               -DBUILD_DOCS=OFF \
+               -DBUILD_EXAMPLE=OFF \
+               -DBUILD_EXAMPLES=OFF \
+               -DBUILD_TEST=OFF \
+               -DBUILD_TESTS=OFF \
                -DBUILD_TESTING=OFF \
                $$($$(PKG)_CONF_OPTS) \
        )