diff options
author | Modestas Vainius <modestas@vainius.eu> | 2009-06-12 20:05:20 +0300 |
---|---|---|
committer | Modestas Vainius <modestas@vainius.eu> | 2009-06-13 17:03:26 +0300 |
commit | 3c686f9757f640be742bf1ed4414f2b48c3d88d9 (patch) | |
tree | b50e62ff9b362cf31469f2d32803fc6df3fe2a12 | |
parent | eebf685de35be08519fa6282fd5eff4a5dc37229 (diff) | |
download | debhelper-3c686f9757f640be742bf1ed4414f2b48c3d88d9.tar.gz |
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 <modestas@vainius.eu>
-rw-r--r-- | Debian/Debhelper/Buildsystem/cmake.pm | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |