fix(frontends/lean): libreadline support
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
9128a437b8
commit
9bac91f5ef
2 changed files with 3 additions and 3 deletions
|
@ -11,6 +11,7 @@ option(MULTI_THREAD "MULTI_THREAD" ON)
|
|||
option(BOOST "BOOST" OFF)
|
||||
option(STATIC "STATIC" OFF)
|
||||
option(SPLIT_STACK "SPLIT_STACK" OFF)
|
||||
option(READLINE "READLINE" OFF)
|
||||
|
||||
# Added for CTest
|
||||
INCLUDE(CTest)
|
||||
|
@ -124,7 +125,6 @@ else()
|
|||
endif()
|
||||
|
||||
# Readline
|
||||
option(READLINE "READLINE" OFF)
|
||||
if("${READLINE}" MATCHES "ON")
|
||||
find_package(Readline)
|
||||
set(EXTRA_LIBS ${EXTRA_LIBS} ${READLINE_LIBRARY})
|
||||
|
|
|
@ -5,12 +5,12 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#ifdef LEAN_USE_READLINE
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <algorithm>
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
#endif
|
||||
#include <utility>
|
||||
#include <string>
|
||||
|
|
Loading…
Reference in a new issue