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 {
* Correct docs about multiarch and v9. Closes: #630826
* Fix example. Closes: #627534
* Fix error message. Closes: #628053
+ * dh_auto_configure: If there is a problem with cmake, display
+ the CMakeCache.txt.
-- Joey Hess <joeyh@debian.org> Sat, 21 May 2011 15:24:19 -0400