Commit cdad9c2b authored by Andrea Pappacoda's avatar Andrea Pappacoda

build(meson): look for howardhinnant-date

Since the "date" library has such a general name,
it often gets renamed to "hinnant-date",
"howardhinnant-date", etc. This change enables
Meson to find the library when it is called in
either ways. This "new" name is used, for example,
in the Debian package.
parent 4c2ebe8d
...@@ -28,7 +28,10 @@ if get_option('b_coverage') ...@@ -28,7 +28,10 @@ if get_option('b_coverage')
add_project_arguments(compiler.get_supported_arguments(['-fstack-protector-all', '--param=ssp-buffer-size=4']), language: 'cpp') add_project_arguments(compiler.get_supported_arguments(['-fstack-protector-all', '--param=ssp-buffer-size=4']), language: 'cpp')
endif endif
date_dep = dependency('hinnant-date', fallback: ['hinnant-date', 'date_dep']) date_dep = dependency('howardhinnant-date', required: false)
if not date_dep.found()
date_dep = dependency('hinnant-date', fallback: ['hinnant-date', 'date_dep'])
endif
deps_libpistache = [ deps_libpistache = [
dependency('threads'), dependency('threads'),
dependency('RapidJSON', fallback: ['rapidjson', 'rapidjson_dep']), dependency('RapidJSON', fallback: ['rapidjson', 'rapidjson_dep']),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment