Merge pull request #606 from ffontaine/master

CMakeLists.txt: use pkg-config to find readline
This commit is contained in:
Tom M 2020-01-11 09:38:06 +01:00 committed by GitHub
commit 528e5465f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -629,12 +629,15 @@ endif ( enable-oboe )
unset ( WITH_READLINE CACHE )
unset ( READLINE_LIBS CACHE )
if ( enable-readline )
find_package ( Readline )
set ( FOUND_READLINE ${HAVE_READLINE} )
if ( HAVE_READLINE )
pkg_check_modules ( READLINE readline )
if ( NOT READLINE_FOUND )
find_package ( Readline )
set ( READLINE_FOUND ${HAVE_READLINE} )
endif ( NOT READLINE_FOUND )
if ( READLINE_FOUND )
set ( WITH_READLINE 1 )
set ( READLINE_LIBS ${READLINE_LIBRARIES} )
endif ( HAVE_READLINE )
endif ( READLINE_FOUND )
endif ( enable-readline )
unset ( ENABLE_MIXER_THREADS CACHE )