summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-01-05 14:51:47 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-01-05 14:55:32 +0100
commit390f5d6ab5d4d06559252d8054b16c12287aa617 (patch)
tree0d18e6afe0c302205160e9d9718015556d77e338 /eclass/cmake.eclass
parentdev-python/tox: keyworded 3.14.3 for ppc/ppc64, bug #685868 (diff)
downloadgentoo-390f5d6ab5d4d06559252d8054b16c12287aa617.tar.gz
gentoo-390f5d6ab5d4d06559252d8054b16c12287aa617.tar.bz2
gentoo-390f5d6ab5d4d06559252d8054b16c12287aa617.zip
cmake.eclass: Fix build with CMAKE_VERBOSE=OFF
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/cmake.eclass')
-rw-r--r--eclass/cmake.eclass6
1 files 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."