mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
cmake: fix readline detection when the readline library is not found
This commit is contained in:
parent
1e74586ee9
commit
dff0adfee5
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ check_function_exists(rl_copy_text HAVE_COPY_TEXT)
|
||||||
check_function_exists(rl_filename_completion_function HAVE_COMPLETION_FUNCTION)
|
check_function_exists(rl_filename_completion_function HAVE_COMPLETION_FUNCTION)
|
||||||
|
|
||||||
if(NOT HAVE_COMPLETION_FUNCTION)
|
if(NOT HAVE_COMPLETION_FUNCTION)
|
||||||
|
if (Readline_LIBRARY)
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${Readline_LIBRARY} ${Termcap_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_copy_text HAVE_COPY_TEXT_TC)
|
||||||
check_function_exists(rl_filename_completion_function HAVE_COMPLETION_FUNCTION_TC)
|
check_function_exists(rl_filename_completion_function HAVE_COMPLETION_FUNCTION_TC)
|
||||||
set(HAVE_COMPLETION_FUNCTION ${HAVE_COMPLETION_FUNCTION_TC})
|
set(HAVE_COMPLETION_FUNCTION ${HAVE_COMPLETION_FUNCTION_TC})
|
||||||
|
|
Loading…
Reference in a new issue