summaryrefslogtreecommitdiff
path: root/cmake/maintainer.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-04-13 16:44:09 +0200
committerSergei Golubchik <serg@mariadb.org>2021-04-13 17:13:44 +0200
commit55a7682a30963c1ee5e367d9f3b9b2e50e12d663 (patch)
tree572003133c18096c75781a246949fe5655f9aced /cmake/maintainer.cmake
parente262eb165c197083df9f4986ab54c5b2dcbd6290 (diff)
downloadmariadb-git-55a7682a30963c1ee5e367d9f3b9b2e50e12d663.tar.gz
-DMYSQL_MAINTAINER_MODE=NO
also add =WARN as an alias for =OFF and clarify the help text
Diffstat (limited to 'cmake/maintainer.cmake')
-rw-r--r--cmake/maintainer.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake
index 9c51cb797bb..933b04fb7f0 100644
--- a/cmake/maintainer.cmake
+++ b/cmake/maintainer.cmake
@@ -1,5 +1,5 @@
# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
-# Copyright (c) 2020, MariaDB
+# Copyright (c) 2011, 2021, MariaDB
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -14,6 +14,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
+IF(MYSQL_MAINTAINER_MODE STREQUAL "NO")
+ RETURN()
+ENDIF()
+
# Common warning flags for GCC, G++, Clang and Clang++
SET(MY_WARNING_FLAGS
-Wall
@@ -41,7 +45,7 @@ IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "6.0.0")
SET(MY_ERROR_FLAGS ${MY_ERROR_FLAGS} -Wno-error=maybe-uninitialized)
ENDIF()
-IF(MYSQL_MAINTAINER_MODE MATCHES "OFF")
+IF(MYSQL_MAINTAINER_MODE MATCHES "OFF|WARN")
RETURN()
ELSEIF(MYSQL_MAINTAINER_MODE MATCHES "AUTO")
SET(WHERE DEBUG)