diff options
author | Monty <monty@mariadb.org> | 2019-02-06 20:43:28 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2019-02-06 22:18:20 +0200 |
commit | 4eae9eeccc4dc5301a5a1b53d1de0b33271fe1ce (patch) | |
tree | c9ca0c0c3777f1659adfeb987c1f1ebda8651c75 /cmake | |
parent | d0799a04791588ba7f89f59516475c25947034e2 (diff) | |
download | mariadb-git-4eae9eeccc4dc5301a5a1b53d1de0b33271fe1ce.tar.gz |
Backport BUILD scripts from 10.4
- Fixes building with galera and tokudb
- Added support for --without-wsrep BUILD script option
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/configure.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/configure.pl b/cmake/configure.pl index c502a172a22..dfd961ee085 100644 --- a/cmake/configure.pl +++ b/cmake/configure.pl @@ -145,6 +145,11 @@ foreach my $option (@ARGV) $cmakeargs = $cmakeargs." -DPLUGIN_".uc($1)."=".uc($2); next; } + if($option =~ /without-wsrep/) + { + $cmakeargs = $cmakeargs." -DWITH_WSREP=OFF"; + next; + } if($option =~ /with-zlib-dir=bundled/) { $cmakeargs = $cmakeargs." -DWITH_ZLIB=bundled"; @@ -185,6 +190,16 @@ foreach my $option (@ARGV) $cmakeargs = $cmakeargs." -DCMAKE_BUILD_TYPE=Debug -DSECURITY_HARDENED=OFF"; next; } + if($option =~ /with-(.*)=(.*)/) + { + $cmakeargs = $cmakeargs. " -DWITH_" . uc($1) . "=" . uc($2); + next; + } + if($option =~ /without-(.*)=(.*)/) + { + $cmakeargs = $cmakeargs. " -DWITHOUT_" . uc($1) . "=" . uc($2); + next; + } if($option =~ /prefix=/) { $cmake_install_prefix= substr($option, 7); |