summaryrefslogtreecommitdiff
path: root/cmake/readline.cmake
diff options
context:
space:
mode:
authorvladislav vaintroub <vvaintroub@u64>2010-01-08 11:06:42 +0100
committervladislav vaintroub <vvaintroub@u64>2010-01-08 11:06:42 +0100
commit0f0e56b03ad13717ef34e816cb380a9ca61cdd2e (patch)
tree131170ca6e243feb6436e2ba207cb0ede3087dba /cmake/readline.cmake
parent31548075cf6ecf9ac539391a598a9914bdade97e (diff)
downloadmariadb-git-0f0e56b03ad13717ef34e816cb380a9ca61cdd2e.tar.gz
CMake 2.6.2 fix
Diffstat (limited to 'cmake/readline.cmake')
-rw-r--r--cmake/readline.cmake16
1 files changed, 10 insertions, 6 deletions
diff --git a/cmake/readline.cmake b/cmake/readline.cmake
index 548144f8f61..5b6d23fc14e 100644
--- a/cmake/readline.cmake
+++ b/cmake/readline.cmake
@@ -197,12 +197,16 @@ MACRO (MYSQL_CHECK_READLINE)
# Handle mutual exclusion of WITH_READLINE/WITH_LIBEDIT variables
# We save current setting to recognize when user switched between
# WITH_READLINE and WITH_LIBEDIT
- IF(WITH_READLINE AND (SAVE_READLINE_SETTING MATCHES "WITH_LIBEDIT"
- OR NOT SAVE_READLINE_SETTING))
- SET(WITH_LIBEDIT OFF CACHE BOOL "Use bundled libedit" FORCE)
- ELSEIF(WITH_LIBEDIT AND (SAVE_READLINE_SETTING MATCHES "WITH_READLINE"
- OR NOT SAVE_READLINE_SETTING))
- SET(WITH_READLINE OFF CACHE BOOL "Use bundled readline" FORCE)
+ IF(WITH_READLINE)
+ IF(NOT SAVE_READLINE_SETTING OR SAVE_READLINE_SETTING MATCHES
+ "WITH_LIBEDIT")
+ SET(WITH_LIBEDIT OFF CACHE BOOL "Use bundled libedit" FORCE)
+ ENDIF()
+ ELSEIF(WITH_LIBEDIT)
+ IF(NOT SAVE_READLINE_SETTING OR SAVE_READLINE_SETTING MATCHES
+ "WITH_READLINE")
+ SET(WITH_READLINE OFF CACHE BOOL "Use bundled readline" FORCE)
+ ENDIF()
ENDIF()
IF(WITH_READLINE)