Skip to content

Commit 981b474

Browse files
committed
Updated configure.pl to new plugin syntax
--with-plugin-name=xxxx --with-plugins= now uses =AUTO instead of =1
1 parent f47124c commit 981b474

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cmake/configure.pl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ sub check_compiler
125125
foreach my $p (@plugins)
126126
{
127127
$p =~ s/-/_/g;
128-
$cmakeargs = $cmakeargs." -DWITH_".uc($p)."=1";
128+
$cmakeargs = $cmakeargs." -DWITH_".uc($p)."=AUTO";
129129
}
130130
next;
131131
}
@@ -137,7 +137,12 @@ sub check_compiler
137137
}
138138
if($option =~ /without-plugin=/ || $option =~ /without-plugin-/)
139139
{
140-
$cmakeargs = $cmakeargs." -DWITHOUT_".uc(substr($option,15))."=1";
140+
$cmakeargs = $cmakeargs." -DPLUGIN_".uc(substr($option,15))."=NO";
141+
next;
142+
}
143+
if($option =~ /with-plugin-(.*)=(.*)/)
144+
{
145+
$cmakeargs = $cmakeargs." -DPLUGIN_".uc($1)."=".uc($2);
141146
next;
142147
}
143148
if($option =~ /with-zlib-dir=bundled/)

0 commit comments

Comments
 (0)