[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to add an argument to cmake with the new dh buildsystem



Hello

I must pass a few parameters to the cmake command
-DBUILD_SHARED_LIBS=ON -DBUILD_DEMOS=OFF -DBUILD_EXTRAS=OFF

how can I do this with dh  and the cmake buildsystem

in the Buildsystem we have this

sub configure {
        my $this=shift;
        my @flags;

        # Standard set of cmake flags
        push @flags, "-DCMAKE_INSTALL_PREFIX=/usr";
        push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON";

        $this->mkdir_builddir();
        $this->doit_in_builddir("cmake", $this->get_source_rel2builddir(), @flags, @_);
}

what is the command to add thoses parameters to the flags

if I use override I must add the default parameters by and. but I do not necessarly knows about them.


thanks


Frédéric


Reply to: