summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-11-12 02:33:19 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-11-12 02:33:19 +0100
commite1837cc0d822fd866a5e0ea7e472234f6aa7abdf (patch)
tree1bcd5388c060c25b6966d0eaf98aec29b7906ffc /cmake
parent2e2f3b1fc1eaa18cae707086ad3b8848021b6b25 (diff)
downloadmariadb-git-e1837cc0d822fd866a5e0ea7e472234f6aa7abdf.tar.gz
Bug #52275 CMake configure wrapper does not handle
--with-comment correctly Properly convert --with-comment do not uppercase it, quote as it might contain spaces.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/configure.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/configure.pl b/cmake/configure.pl
index 1dc8080810c..b24afa034c7 100644
--- a/cmake/configure.pl
+++ b/cmake/configure.pl
@@ -185,6 +185,11 @@ foreach my $option (@ARGV)
($option =~ /enable/ ? "1" : "0");
next;
}
+ if ($option =~ /with-comment=/)
+ {
+ $cmakeargs = $cmakeargs." \"-DWITH_COMMENT=".substr($option,13)."\"";
+ next;
+ }
$option = uc($option);
$option =~ s/-/_/g;