meson: Simplify check for cairo library and headers
This commit is contained in:
parent
c4bbe89b53
commit
571365df33
|
@ -125,9 +125,8 @@ if not get_option('cairo').disabled()
|
||||||
cairo_dep = dependency('cairo', required: false)
|
cairo_dep = dependency('cairo', required: false)
|
||||||
|
|
||||||
if not cairo_dep.found() and cpp.get_id() == 'msvc'
|
if not cairo_dep.found() and cpp.get_id() == 'msvc'
|
||||||
if cpp.has_header('cairo.h')
|
cairo_dep = cpp.find_library('cairo', required: false,
|
||||||
cairo_dep = cpp.find_library('cairo')
|
has_headers: ['cairo.h'])
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if not cairo_dep.found() and get_option('cairo').enabled()
|
if not cairo_dep.found() and get_option('cairo').enabled()
|
||||||
|
|
Loading…
Reference in New Issue