From 878f25308d548106ba126715e68776e42ee8b626 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 24 Jun 2011 14:25:35 -0400 Subject: dh_auto_configure: If there is a problem with cmake, display the CMakeCache.txt. --- Debian/Debhelper/Buildsystem/cmake.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Debian/Debhelper') diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm index d4a98f43..9e40cb72 100644 --- a/Debian/Debhelper/Buildsystem/cmake.pm +++ b/Debian/Debhelper/Buildsystem/cmake.pm @@ -44,7 +44,15 @@ sub configure { push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON"; $this->mkdir_builddir(); - $this->doit_in_builddir("cmake", $this->get_source_rel2builddir(), @flags, @_); + eval { + $this->doit_in_builddir("cmake", $this->get_source_rel2builddir(), @flags, @_); + }; + if ($@) { + if (-e $this->get_buildpath("CMakeCache.txt")) { + $this->doit_in_builddir("tail -v -n +0 CMakeCache.txt"); + } + die $@; + } } sub test { -- cgit v1.2.3