mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
meson: set -std=c++17 when building with icu >= 75
Fixes: https://github.com/harfbuzz/harfbuzz/issues/4671
This commit is contained in:
1 parent
09a17a086c
commit
93d58f8315
1 file changed
+4
@@ -174,6 +174,10 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
if icu_dep.found() and icu_dep.version().version_compare('>=75.1') and (get_option('cpp_std') == 'c++11' or get_option('cpp_std') == 'c++14')
|
||||
add_project_arguments('-std=c++17', language: 'cpp')
|
||||
endif
|
||||
|
||||
if icu_dep.found() and icu_dep.type_name() == 'pkgconfig'
|
||||
icu_defs = icu_dep.get_variable(pkgconfig: 'DEFS', default_value: '').split()
|
||||
if icu_defs.length() > 0
|
||||
|
||||
Reference in new issue
Block a user