mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
meson: Use cc.has_define instead of cc.get_define for variables that may be undefined
Fixes the message: Fetching value of define "DEBUG_SVG_RENDER" : (undefined)
This commit is contained in:
parent
4f38b502e5
commit
b00db10ae8
1 changed files with 1 additions and 1 deletions
|
|
@ -696,6 +696,6 @@ test('cairo', exe,
|
|||
|
||||
# The SVG renderer debug tools can only be built if the _cairo_debug_svg_render()
|
||||
# function has been exposed by defining DEBUG_SVG_RENDER
|
||||
if conf.get('HAVE_FT_SVG_DOCUMENT', 0) == 1 and cc.get_define('DEBUG_SVG_RENDER') != ''
|
||||
if conf.get('HAVE_FT_SVG_DOCUMENT', 0) == 1 and cc.has_define('DEBUG_SVG_RENDER')
|
||||
subdir('svg')
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue