From c99a1ab3b412c2af1d92a492aee48ca825ba6dfb Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Sun, 19 Oct 2014 20:04:37 +0200 Subject: [PATCH] package/pkg-cmake.mk: globally disable doc, examples and tests 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 Signed-off-by: Thomas Petazzoni --- package/pkg-cmake.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index 92574e2d88..3c5d4fe263 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -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) \ )