enable readline support if header and lib found

This commit is contained in:
Tom M 2019-06-05 20:04:33 +03:00 committed by GitHub
parent e49b5ed201
commit b0d6c01911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,9 +10,9 @@ endif ( READLINE_INCLUDE_DIR AND READLINE_LIBRARIES )
find_path ( READLINE_INCLUDE_DIR NAMES history.h readline/history.h )
find_library ( READLINE_LIBRARIES NAMES readline )
if ( READLINE_INCLUDE_DIR )
set ( HAVE_READLINE TRUE CACHE TYPE BOOL )
endif ( READLINE_INCLUDE_DIR )
if ( READLINE_INCLUDE_DIR AND READLINE_LIBRARIES )
set ( HAVE_READLINE TRUE CACHE BOOL )
endif ( READLINE_INCLUDE_DIR AND READLINE_LIBRARIES )
include ( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( READLINE DEFAULT_MSG