summaryrefslogtreecommitdiff
path: root/cmake/mysql_version.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-01-27 14:23:33 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-01-27 14:23:33 +0100
commiteb81868421ffe0fce3d0f49c5f140445816a2760 (patch)
treedba718386ef623a137073d87d2e3fdc15ed13ad8 /cmake/mysql_version.cmake
parent24b6ae2d0b81199278255cac1ccaeb59c80cbde5 (diff)
downloadmariadb-git-eb81868421ffe0fce3d0f49c5f140445816a2760.tar.gz
Fix issues around MYSQL_TCP_PORT_DEFAULT (should be really 0 all the time)
Diffstat (limited to 'cmake/mysql_version.cmake')
-rw-r--r--cmake/mysql_version.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/mysql_version.cmake b/cmake/mysql_version.cmake
index a05df7f5f19..c1eafd887c9 100644
--- a/cmake/mysql_version.cmake
+++ b/cmake/mysql_version.cmake
@@ -84,7 +84,11 @@ ENDIF()
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")
ENDIF()
+
+
IF(NOT MYSQL_UNIX_ADDR)
SET(MYSQL_UNIX_ADDR "/tmp/mysql.sock")
ENDIF()