]> git.donarmstrong.com Git - debhelper.git/commitdiff
Enforce out of source building in soft mode for cmake.
authorModestas Vainius <modestas@vainius.eu>
Fri, 12 Jun 2009 17:05:20 +0000 (20:05 +0300)
committerModestas Vainius <modestas@vainius.eu>
Sat, 13 Jun 2009 14:03:26 +0000 (17:03 +0300)
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 <modestas@vainius.eu>
Debian/Debhelper/Buildsystem/cmake.pm

index a30fbb03060e186364a029444849fecd90745fac..057f327b2e0050945faa042521485138adc2e636 100644 (file)
@@ -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;
 }