wesnoth/cmake/FindHistory.cmake
Ignacio R. Morelle cfbeee2f50 cmake: Add ENABLE_HISTORY option
For enabling history expansion support in the Lua console. Uses GNU
libhistory.
2015-04-13 04:30:57 -03:00

10 lines
353 B
CMake

# Locale GNU history library
find_path(HISTORY_INCLUDE_DIR readline/history.h)
find_library(HISTORY_LIBRARY history)
# handle the QUIETLY and REQUIRED arguments and set XXX_FOUND to TRUE if all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HISTORY DEFAULT_MSG HISTORY_LIBRARY HISTORY_INCLUDE_DIR)