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>
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;
}