summaryrefslogtreecommitdiff
path: root/cmake/configure.pl
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2015-11-20 09:57:58 +0200
committerMonty <monty@mariadb.org>2015-11-20 09:57:58 +0200
commit981b4747538c742932561d278919fc4b57bd37eb (patch)
treef7bd1d8e766ad71e3d4d8371362bee385880b737 /cmake/configure.pl
parentf47124c9ef58d0f0e02d6c0ce616a7397420f99b (diff)
downloadmariadb-git-981b4747538c742932561d278919fc4b57bd37eb.tar.gz
Updated configure.pl to new plugin syntax
--with-plugin-name=xxxx --with-plugins= now uses =AUTO instead of =1
Diffstat (limited to 'cmake/configure.pl')
-rw-r--r--cmake/configure.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/configure.pl b/cmake/configure.pl
index b298ab11076..68baf436c1c 100644
--- a/cmake/configure.pl
+++ b/cmake/configure.pl
@@ -125,7 +125,7 @@ foreach my $option (@ARGV)
foreach my $p (@plugins)
{
$p =~ s/-/_/g;
- $cmakeargs = $cmakeargs." -DWITH_".uc($p)."=1";
+ $cmakeargs = $cmakeargs." -DWITH_".uc($p)."=AUTO";
}
next;
}
@@ -137,7 +137,12 @@ foreach my $option (@ARGV)
}
if($option =~ /without-plugin=/ || $option =~ /without-plugin-/)
{
- $cmakeargs = $cmakeargs." -DWITHOUT_".uc(substr($option,15))."=1";
+ $cmakeargs = $cmakeargs." -DPLUGIN_".uc(substr($option,15))."=NO";
+ next;
+ }
+ if($option =~ /with-plugin-(.*)=(.*)/)
+ {
+ $cmakeargs = $cmakeargs." -DPLUGIN_".uc($1)."=".uc($2);
next;
}
if($option =~ /with-zlib-dir=bundled/)