commit:     390f5d6ab5d4d06559252d8054b16c12287aa617
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  5 13:51:47 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan  5 13:55:32 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=390f5d6a

cmake.eclass: Fix build with CMAKE_VERBOSE=OFF

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/cmake.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index c91e2dd4ada..4a02a646bb7 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."

Reply via email to