Updated documentation and added a message if libedit is not found.

This commit is contained in:
Markus Makela
2015-04-23 15:04:38 +03:00
parent 811c13fe32
commit 70cf7663d7
3 changed files with 14 additions and 3 deletions

View File

@ -1,7 +1,10 @@
add_executable(maxadmin maxadmin.c)
find_library(HIST edit)
if(HIST)
message(STATUS "Building MaxAdmin with editline: ${HIST}")
add_definitions(-DHISTORY)
target_link_libraries(maxadmin ${HIST})
else()
message(STATUS "Could not find editline library. MaxAdmin will be built without it.")
endif()
install(TARGETS maxadmin DESTINATION bin)
install(TARGETS maxadmin DESTINATION bin)