From: Modestas Vainius Date: Fri, 12 Jun 2009 17:05:20 +0000 (+0300) Subject: Enforce out of source building in soft mode for cmake. X-Git-Tag: 7.3.0~49 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3c686f9757f640be742bf1ed4414f2b48c3d88d9;p=debhelper.git 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 --- diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm index a30fbb0..057f327 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; }