mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Finding Readline.
This commit is contained in:
parent
14717cb2da
commit
b6ac337828
1 changed files with 13 additions and 0 deletions
|
@ -67,6 +67,19 @@ endif (GNUTLS_FOUND)
|
|||
# set (TASK_LIBRARIES ${TASK_LIBRARIES} ${PTHREAD_LIBRARIES})
|
||||
#endif (PTHREAD_INCLUDE_DIR AND PTHREAD_LIBRARY)
|
||||
|
||||
# include the readline library finder module
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules")
|
||||
|
||||
# find readline
|
||||
message ("-- Looking for GNU Readline")
|
||||
find_package (Readline)
|
||||
if (READLINE_FOUND)
|
||||
message ("-- Found GNU Readline: ${READLINE_LIBRARIES}")
|
||||
set (HAVE_LIBREADLINE true)
|
||||
set (TASK_INCLUDE_DIRS ${TASK_INCLUDE_DIRS} ${READLINE_INCLUDE_DIR})
|
||||
set (TASK_LIBRARIES ${TASK_LIBRARIES} ${READLINE_LIBRARIES})
|
||||
endif (READLINE_FOUND)
|
||||
|
||||
check_function_exists (random HAVE_RANDOM)
|
||||
check_function_exists (srandom HAVE_SRANDOM)
|
||||
check_function_exists (timegm HAVE_TIMEGM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue