fix(frontends/lean): libreadline support

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-21 18:57:15 -08:00
parent 9128a437b8
commit 9bac91f5ef
2 changed files with 3 additions and 3 deletions

View file

@ -11,6 +11,7 @@ option(MULTI_THREAD "MULTI_THREAD" ON)
option(BOOST "BOOST" OFF) option(BOOST "BOOST" OFF)
option(STATIC "STATIC" OFF) option(STATIC "STATIC" OFF)
option(SPLIT_STACK "SPLIT_STACK" OFF) option(SPLIT_STACK "SPLIT_STACK" OFF)
option(READLINE "READLINE" OFF)
# Added for CTest # Added for CTest
INCLUDE(CTest) INCLUDE(CTest)
@ -124,7 +125,6 @@ else()
endif() endif()
# Readline # Readline
option(READLINE "READLINE" OFF)
if("${READLINE}" MATCHES "ON") if("${READLINE}" MATCHES "ON")
find_package(Readline) find_package(Readline)
set(EXTRA_LIBS ${EXTRA_LIBS} ${READLINE_LIBRARY}) set(EXTRA_LIBS ${EXTRA_LIBS} ${READLINE_LIBRARY})

View file

@ -5,12 +5,12 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#ifdef LEAN_USE_READLINE #ifdef LEAN_USE_READLINE
#include <readline/readline.h>
#include <readline/history.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <algorithm> #include <algorithm>
#include <readline/readline.h>
#include <readline/history.h>
#endif #endif
#include <utility> #include <utility>
#include <string> #include <string>