1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-14 18:41:54 +00:00

Set readline as required package

autotools already set it, but cmake and meson no.
This commit is contained in:
Alberto Fanjul 2019-08-27 11:01:22 +02:00
parent 58dd6c411e
commit 4111333521
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ configure_file(output: 'config.h',
)
c_compiler = meson.get_compiler('c')
readline = c_compiler.find_library('readline', required: false)
readline = c_compiler.find_library('readline', required: true)
if readline.found()
add_project_arguments('-DHAVE_READLINE', language: 'c')
endif

View file

@ -2,7 +2,7 @@ find_package(PkgConfig)
pkg_check_modules (GLIB2 REQUIRED glib-2.0)
link_directories( ${GLIB2_LIBRARY_DIRS})
include_directories( ${GLIB2_INCLUDE_DIRS})
find_package(Readline)
find_package(Readline REQUIRED)
pkg_check_modules (GLIB2 REQUIRED glib-2.0)
########### next target ###############