diff options
author | Niels Thykier <niels@thykier.net> | 2015-08-13 15:11:58 +0200 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-08-13 15:11:58 +0200 |
commit | 5b0c5a648db0e1729714db18eb8128569758df6f (patch) | |
tree | 8fc527d76434ab1cbc06d6fafddaef145a832f42 /Debian | |
parent | ef459660f57b1a4b6e46d540cb91f2de5514812a (diff) | |
download | debhelper-5b0c5a648db0e1729714db18eb8128569758df6f.tar.gz |
cmake.pm: Set SYSCONFDIF and LOCALESTATEDIR
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Buildsystem/cmake.pm | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm index f778c6dc..6bd591b8 100644 --- a/Debian/Debhelper/Buildsystem/cmake.pm +++ b/Debian/Debhelper/Buildsystem/cmake.pm @@ -11,6 +11,14 @@ use warnings; use Debian::Debhelper::Dh_Lib qw(compat dpkg_architecture_value error is_cross_compiling); use parent qw(Debian::Debhelper::Buildsystem::makefile); +my @STANDARD_CMAKE_FLAGS = qw( + -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_VERBOSE_MAKEFILE=ON + -DCMAKE_BUILD_TYPE=None + -DCMAKE_INSTALL_SYSCONFDIR=/etc + -DCMAKE_INSTALL_LOCALSTATEDIR=/var +); + my %DEB_HOST2CMAKE_SYSTEM = ( 'linux' => 'Linux', 'kfreebsd' => 'FreeBSD', @@ -45,12 +53,8 @@ sub new { sub configure { my $this=shift; - my @flags; - # Standard set of cmake flags - push @flags, "-DCMAKE_INSTALL_PREFIX=/usr"; - push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON"; - push @flags, "-DCMAKE_BUILD_TYPE=None"; + my @flags = @STANDARD_CMAKE_FLAGS; if (is_cross_compiling()) { my $deb_host = dpkg_architecture_value("DEB_HOST_ARCH_OS"); |