[Buildroot] [PATCH] pkg-cmake: reduce output when being silent
Fabio Porcedda
fabio.porcedda at gmail.com
Wed Feb 11 17:52:21 UTC 2015
Use CMAKE_RULE_MESSAGES and CMAKE_INSTALL_MESSAGE variables to reduce
cmake output when it is a silent build.
Signed-off-by: Fabio Porcedda <fabio.porcedda at gmail.com>
---
package/pkg-cmake.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk
index 6c9955d..de11134 100644
--- a/package/pkg-cmake.mk
+++ b/package/pkg-cmake.mk
@@ -31,6 +31,12 @@ CMAKE_HOST_C_COMPILER = $(HOSTCC)
CMAKE_HOST_CXX_COMPILER = $(HOSTCXX)
endif
+ifdef QUIET
+CMAKE_QUIET = -DCMAKE_RULE_MESSAGES=OFF -DCMAKE_INSTALL_MESSAGE=NEVER
+else
+CMAKE_QUIET =
+endif
+
################################################################################
# inner-cmake-package -- defines how the configuration, compilation and
# installation of a CMake package should be done, implements a few hooks to
@@ -86,6 +92,7 @@ define $(2)_CONFIGURE_CMDS
-DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=$$(if $$(BR2_STATIC_LIBS),OFF,ON) \
-DUSE_CCACHE=$$(if $$(BR2_CCACHE),ON,OFF) \
+ $$(CMAKE_QUIET) \
$$($$(PKG)_CONF_OPTS) \
)
endef
--
2.1.0
More information about the buildroot
mailing list