]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Buildsystem/cmake.pm
cmake build+ steps need Makefile.
[debhelper.git] / Debian / Debhelper / Buildsystem / cmake.pm
index ee90c1f9122814761db5decd5e5383f5b82e11b5..24f486fc27329e1acf54d9839c7a513b3dcd581c 100644 (file)
@@ -17,12 +17,13 @@ sub check_auto_buildable {
        my $this=shift;
        my ($step)=@_;
        if (-e $this->get_sourcepath("CMakeLists.txt")) {
-               my $ret = $this->SUPER::check_auto_buildable(@_);
+               my $ret = ($step eq "configure" && 1) ||
+                         $this->SUPER::check_auto_buildable(@_);
                # Existence of CMakeCache.txt indicates cmake has already
                # been used by a prior build step, so should be used
                # instead of the parent makefile class.
                $ret++ if ($ret && -e $this->get_buildpath("CMakeCache.txt"));
-               return $ret > 0 ? $ret : 1;
+               return $ret;
        }
        return 0;
 }