From 8dae1eebcf2c569626584a46ef2f210b966120ce Mon Sep 17 00:00:00 2001 From: Tom M Date: Wed, 5 Jun 2019 20:04:33 +0300 Subject: [PATCH] enable readline support if header and lib found --- cmake_admin/FindReadline.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake_admin/FindReadline.cmake b/cmake_admin/FindReadline.cmake index e41a8605..839c797f 100644 --- a/cmake_admin/FindReadline.cmake +++ b/cmake_admin/FindReadline.cmake @@ -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