build: guard execinfo.h via build systems (#3547)

* guard execinfo via cmake

* libexecinfo -> execinfo macro name

* meson: add execinfo check

* move check in cmake up

---------

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
This commit is contained in:
Vaxry
2023-10-11 22:27:53 +01:00
committed by GitHub
parent 5dc7161b1d
commit 06cc42441c
4 changed files with 32 additions and 17 deletions

View File

@@ -29,6 +29,10 @@ add_project_arguments(
],
language: 'cpp')
if cpp_compiler.check_header('execinfo.h')
add_project_arguments('-DHAS_EXECINFO', language: 'cpp')
endif
wlroots = subproject('wlroots', default_options: ['examples=false', 'renderers=gles2'])
have_xwlr = wlroots.get_variable('features').get('xwayland')
xcb_dep = dependency('xcb', required: get_option('xwayland'))