From ada6e38dc5169a561d244d21a67900640c6db3f9 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Wed, 27 Jan 2010 14:23:33 +0100 Subject: [PATCH] Fix issues around MYSQL_TCP_PORT_DEFAULT (should be really 0 all the time) --- cmake/mysql_version.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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()