From 390f5d6ab5d4d06559252d8054b16c12287aa617 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 5 Jan 2020 14:51:47 +0100 Subject: [PATCH] cmake.eclass: Fix build with CMAKE_VERBOSE=OFF Signed-off-by: Andreas Sturmlechner --- eclass/cmake.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index c91e2dd4ada2..4a02a646bb76 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -566,8 +566,10 @@ cmake_build() { case ${CMAKE_MAKEFILE_GENERATOR} in emake) [[ -e Makefile ]] || die "Makefile not found. Error during configure stage." - [[ "${CMAKE_VERBOSE}" != "OFF" ]] && local verbosity="VERBOSE=1" - emake "${verbosity}" "$@" + case ${CMAKE_VERBOSE} in + OFF) emake VERBOSE=1 "$@" ;; + *) emake "$@" ;; + esac ;; ninja) [[ -e build.ninja ]] || die "build.ninja not found. Error during configure stage." -- 2.26.2