meson: use cc.find_library()

find_library() was deprecated and removed in later versions.
This commit is contained in:
Tim-Philipp Müller 2017-05-05 12:02:33 +01:00
parent dcfb222e05
commit 0d33e8f11d

View file

@ -74,7 +74,7 @@ if have_ptp
gst_ptp_have_cap = false gst_ptp_have_cap = false
cap_dep = [] cap_dep = []
if cc.has_header('sys/capability.h') if cc.has_header('sys/capability.h')
cap_dep = find_library('cap', required : false) cap_dep = cc.find_library('cap', required : false)
if cap_dep.found() and cc.has_function('cap_init', dependencies : cap_dep) if cap_dep.found() and cc.has_function('cap_init', dependencies : cap_dep)
gst_ptp_have_cap = true gst_ptp_have_cap = true
endif endif