[debhelper-devel] [RFC 4/4] Don't tell cmake to generate verbose makefiles if DH_QUIET is set
Bernhard R. Link
brlink at debian.org
Mon Dec 29 12:36:24 UTC 2014
Signed-off-by: Bernhard R. Link <brlink at debian.org>
---
Debian/Debhelper/Buildsystem/cmake.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm
index db971db..b73d2c8 100644
--- a/Debian/Debhelper/Buildsystem/cmake.pm
+++ b/Debian/Debhelper/Buildsystem/cmake.pm
@@ -42,8 +42,10 @@ sub configure {
# Standard set of cmake flags
push @flags, "-DCMAKE_INSTALL_PREFIX=/usr";
- push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON";
push @flags, "-DCMAKE_BUILD_TYPE=None";
+ if (!defined $ENV{DH_QUIET} || $ENV{DH_QUIET} eq "") {
+ push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON";
+ }
# CMake doesn't respect CPPFLAGS, see #653916.
if ($ENV{CPPFLAGS} && ! compat(8)) {
--
2.1.4
Bernhard R. Link
--
F8AC 04D5 0B9B 064B 3383 C3DA AFFC 96D1 151D FFDC
More information about the debhelper-devel
mailing list