build: Fix libplist 1.x builds

When libplist-2.0 isn't available, fallback to requiring libplist 1.x
to build the iDevice support.
This commit is contained in:
Bastien Nocera 2021-09-13 12:32:14 +02:00
parent 98be7dd216
commit 244e858a86

View file

@ -76,7 +76,7 @@ if os_backend == 'linux'
if idevice_dep.found()
plist_dep = dependency('libplist-2.0', required: false)
if not plist_dep.found()
plist_dep = dependency(libplist)
plist_dep = dependency('libplist', required: true)
endif
cdata.set10('HAVE_IDEVICE', true)
endif