summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to '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 f523d7eb4e2..b7044d31446 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."