path: root/Debian
diff options
authorModestas Vainius <>2009-06-12 20:05:20 +0300
committerModestas Vainius <>2009-06-13 17:03:26 +0300
commit3c686f9757f640be742bf1ed4414f2b48c3d88d9 (patch)
treeb50e62ff9b362cf31469f2d32803fc6df3fe2a12 /Debian
parenteebf685de35be08519fa6282fd5eff4a5dc37229 (diff)
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 <>
Diffstat (limited to 'Debian')
1 files changed, 3 insertions, 2 deletions
diff --git a/Debian/Debhelper/Buildsystem/ b/Debian/Debhelper/Buildsystem/
index a30fbb0..057f327 100644
--- a/Debian/Debhelper/Buildsystem/
+++ b/Debian/Debhelper/Buildsystem/
@@ -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;