mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-30 16:01:51 +00:00
Merge pull request #606 from ffontaine/master
CMakeLists.txt: use pkg-config to find readline
This commit is contained in:
commit
528e5465f1
1 changed files with 7 additions and 4 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue