meson.build: Only use get_variable() on icu_dep with pkgconfig
We might have found ICU via the .lib names, and get_variable() is only available for pkg-config deps.
This commit is contained in:
parent
52c536bb8d
commit
3d22dae5f8
|
@ -129,7 +129,7 @@ if not get_option('icu').disabled()
|
|||
endif
|
||||
endif
|
||||
|
||||
if icu_dep.found()
|
||||
if icu_dep.found() and icu_dep.type_name() == 'pkgconfig'
|
||||
icu_defs = icu_dep.get_variable(pkgconfig: 'DEFS', default_value: '')
|
||||
if icu_defs != ''
|
||||
add_project_arguments(icu_defs, language: ['c', 'cpp'])
|
||||
|
|
Loading…
Reference in New Issue