cmake.eclass: Fix build with CMAKE_VERBOSE=OFF
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 5 Jan 2020 13:51:47 +0000 (14:51 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 5 Jan 2020 13:55:32 +0000 (14:55 +0100)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/cmake.eclass

index c91e2dd4ada221d7cd6d10d412b49df3ec1babb9..4a02a646bb76965633ffe5e82794c3e615819c5a 100644 (file)
@@ -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."