Commit 4da913b5 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix error with cmake 2.6

parent 10c09178
...@@ -197,11 +197,11 @@ MACRO (MYSQL_CHECK_READLINE) ...@@ -197,11 +197,11 @@ MACRO (MYSQL_CHECK_READLINE)
# Handle mutual exclusion of WITH_READLINE/WITH_LIBEDIT variables # Handle mutual exclusion of WITH_READLINE/WITH_LIBEDIT variables
# We save current setting to recognize when user switched between # We save current setting to recognize when user switched between
# WITH_READLINE and WITH_LIBEDIT # WITH_READLINE and WITH_LIBEDIT
IF(WITH_READLINE AND SAVE_READLINE_SETTING MATCHES "WITH_LIBEDIT" IF(WITH_READLINE AND (SAVE_READLINE_SETTING MATCHES "WITH_LIBEDIT"
OR NOT SAVE_READLINE_SETTING ) OR NOT SAVE_READLINE_SETTING))
SET(WITH_LIBEDIT OFF CACHE BOOL "Use bundled libedit" FORCE) SET(WITH_LIBEDIT OFF CACHE BOOL "Use bundled libedit" FORCE)
ELSEIF(WITH_LIBEDIT AND SAVE_READLINE_SETTING MATCHES "WITH_READLINE" ELSEIF(WITH_LIBEDIT AND (SAVE_READLINE_SETTING MATCHES "WITH_READLINE"
OR NOT SAVE_READLINE_SETTING ) OR NOT SAVE_READLINE_SETTING))
SET(WITH_READLINE OFF CACHE BOOL "Use bundled readline" FORCE) SET(WITH_READLINE OFF CACHE BOOL "Use bundled readline" FORCE)
ENDIF() ENDIF()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment