summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-10-11 21:53:43 +0200
committerSergei Golubchik <serg@mariadb.org>2017-10-18 22:15:26 +0200
commit30faf331b8ec86211581f040f17a5b8ee37e46f2 (patch)
treeb4e95bc7677ecc35595b6035f1aa94bc2e97a3b3 /cmake
parenta75884e70135dc3699a16fd2745750e990e5851c (diff)
downloadmariadb-git-30faf331b8ec86211581f040f17a5b8ee37e46f2.tar.gz
MDEV-13836 mariadb_config & mysql_config output differ
allow to build with the default port number 3306. Now -DMYSQL_TCP_PORT=# sets the default port name and -DMYSQL_TCP_PORT_DEFAULT=# sets the magic port=0 behavior, if it's MYSQL_TCP_PORT_DEFAULT=0 it's enabled, otherwise - disabled.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mysql_version.cmake8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmake/mysql_version.cmake b/cmake/mysql_version.cmake
index 87d61fcf344..02579c9534e 100644
--- a/cmake/mysql_version.cmake
+++ b/cmake/mysql_version.cmake
@@ -69,13 +69,9 @@ ENDMACRO()
# Get mysql version and other interesting variables
GET_MYSQL_VERSION()
-SET(MYSQL_TCP_PORT_DEFAULT "3306")
-
+SET(MYSQL_TCP_PORT_DEFAULT 0)
IF(NOT MYSQL_TCP_PORT)
- SET(MYSQL_TCP_PORT ${MYSQL_TCP_PORT_DEFAULT})
- SET(MYSQL_TCP_PORT_DEFAULT "0")
-ELSEIF(MYSQL_TCP_PORT EQUAL MYSQL_TCP_PORT_DEFAULT)
- SET(MYSQL_TCP_PORT_DEFAULT "0")
+ SET(MYSQL_TCP_PORT 3306)
ENDIF()
IF(NOT COMPILATION_COMMENT)