diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-11-06 21:29:52 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-11-06 21:29:53 +0200 |
commit | ab6b2a5cdb3e23a85ee691856947cb3aa8767f70 (patch) | |
tree | 360167f1e119997d20db056ae1984f9c69f1959a | |
parent | Merge pull request #4729 (diff) | |
parent | cmake: fix readline detection when the readline library is not found (diff) | |
download | monero-ab6b2a5cdb3e23a85ee691856947cb3aa8767f70.tar.xz |
Merge pull request #4730
dff0adfe cmake: fix readline detection when the readline library is not found (moneromooo-monero)
-rw-r--r-- | cmake/FindReadline.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/FindReadline.cmake b/cmake/FindReadline.cmake index de9ddc46d..f26911b26 100644 --- a/cmake/FindReadline.cmake +++ b/cmake/FindReadline.cmake @@ -66,7 +66,9 @@ check_function_exists(rl_copy_text HAVE_COPY_TEXT) check_function_exists(rl_filename_completion_function HAVE_COMPLETION_FUNCTION) if(NOT HAVE_COMPLETION_FUNCTION) - set(CMAKE_REQUIRED_LIBRARIES ${Readline_LIBRARY} ${Termcap_LIBRARY}) + if (Readline_LIBRARY) + set(CMAKE_REQUIRED_LIBRARIES ${Readline_LIBRARY} ${Termcap_LIBRARY}) + endif(Readline_LIBRARY) check_function_exists(rl_copy_text HAVE_COPY_TEXT_TC) check_function_exists(rl_filename_completion_function HAVE_COMPLETION_FUNCTION_TC) set(HAVE_COMPLETION_FUNCTION ${HAVE_COMPLETION_FUNCTION_TC}) |