From 97bda8bb14f0f314a5fa0b568e65443de3ab4f89 Mon Sep 17 00:00:00 2001 From: Modestas Vainius Date: Mon, 16 Nov 2009 20:40:26 -0500 Subject: Enable verbose ctest output on test failure When test fails, enable verbose ctest output. This allows to get more details on a test failure from the build logs. Auto-select cmake in further steps only if cmake was run in configure step. CMake writes CMakeCache.txt to build directory when it is run. Depend on the presence of this file for auto-selection in build, test, install and clean steps. Signed-off-by: Modestas Vainius --- Debian/Debhelper/Buildsystem/cmake.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Debian') diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm index 645c8c03..03e6ade5 100644 --- a/Debian/Debhelper/Buildsystem/cmake.pm +++ b/Debian/Debhelper/Buildsystem/cmake.pm @@ -17,7 +17,10 @@ sub check_auto_buildable { my $this=shift; my ($step)=@_; my $ret = -e $this->get_sourcepath("CMakeLists.txt"); - $ret &&= $this->SUPER::check_auto_buildable(@_) if $step ne "configure"; + if ($step ne "configure") { + $ret &&= -e $this->get_buildpath("CMakeCache.txt") && + $this->SUPER::check_auto_buildable(@_); + } return $ret; } -- cgit v1.2.3