package Debian::Debhelper::Buildsystem::cmake;
use strict;
-use Debian::Debhelper::Dh_Lib;
use base 'Debian::Debhelper::Buildsystem::makefile';
sub DESCRIPTION {
sub check_auto_buildable {
my $this=shift;
my ($step)=@_;
- my $ret = -e "CMakeLists.txt";
+ my $ret = -e $this->get_sourcepath("CMakeLists.txt");
$ret &&= $this->SUPER::check_auto_buildable(@_) if $step ne "configure";
return $ret;
}
push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON";
$this->mkdir_builddir();
- $this->doit_in_builddir("cmake", $this->get_rel2builddir_path(), @flags);
+ $this->doit_in_builddir("cmake", $this->get_source_rel2builddir(), @flags);
}
1;