Adding a Readline finder CMake module because Readline is not in the default CMake module list.
This commit is contained in:
committed by
Paul Beckingham
parent
5a360ef208
commit
14717cb2da
8
cmake/Modules/FindReadline.cmake
Normal file
8
cmake/Modules/FindReadline.cmake
Normal file
@@ -0,0 +1,8 @@
|
||||
# GNU Readline library finder
|
||||
if (READLINE_INCLUDE_DIR AND READLINE_LIBRARIES)
|
||||
set (READLINE_FOUND TRUE)
|
||||
else (READLINE_INCLUDE_DIR AND READLINE_LIBRARIES)
|
||||
find_path (READLINE_INCLUDE_DIR readline/readline.h)
|
||||
find_library (READLINE_LIBRARIES readline)
|
||||
mark_as_advanced (READLINE_INCLUDE_DIR READLINE_LIBRARIES)
|
||||
endif (READLINE_INCLUDE_DIR AND READLINE_LIBRARIES)
|
||||
Reference in New Issue
Block a user