From a81dd8b003e5152bddeccc0c92f40c003890cbdc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 18 Nov 2009 14:28:47 -0500 Subject: comment munging --- Debian/Debhelper/Buildsystem/cmake.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Debian/Debhelper/Buildsystem/cmake.pm') diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm index 3eddc74f..ee90c1f9 100644 --- a/Debian/Debhelper/Buildsystem/cmake.pm +++ b/Debian/Debhelper/Buildsystem/cmake.pm @@ -18,6 +18,9 @@ sub check_auto_buildable { my ($step)=@_; if (-e $this->get_sourcepath("CMakeLists.txt")) { my $ret = $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; } -- cgit v1.2.3