From 3c686f9757f640be742bf1ed4414f2b48c3d88d9 Mon Sep 17 00:00:00 2001 From: Modestas Vainius Date: Fri, 12 Jun 2009 20:05:20 +0300 Subject: Enforce out of source building in soft mode for cmake. Technically, cmake supports in source builds, they are simply not recommended. However, if the user insists and explicitly specifies the build directory that is equal to the source directory, allow this (aka soft mode). Signed-off-by: Modestas Vainius --- Debian/Debhelper/Buildsystem/cmake.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Debian/Debhelper/Buildsystem/cmake.pm') diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm index a30fbb03..057f327b 100644 --- a/Debian/Debhelper/Buildsystem/cmake.pm +++ b/Debian/Debhelper/Buildsystem/cmake.pm @@ -24,8 +24,9 @@ sub check_auto_buildable { sub new { my $class=shift; my $this=$class->SUPER::new(@_); - # Enforce out of source tree building. - $this->enforce_out_of_source_building(); + my %args=@_; + # Enforce out of source tree building (soft mode). + $this->enforce_out_of_source_building($args{builddir}); return $this; } -- cgit v1.2.3