Debian Codegraph @

test cases/common/288 atomic/meson.build

raw
1 project('meson system dependency', 'c', meson_version: '>=1.7.0')
2
3 cc = meson.get_compiler('c')
4
5 # We could check if dependency('atomic') actually finds something when
6 # we 'know' it exists (MESON_SKIP_TEST) but that's likely to be brittle,
7 # so don't bother (for now, at least).
8 atomic = dependency('atomic', required : false)
9
10 # If the dependency provider says it found something, make sure it can
11 # be linked against (https://github.com/mesonbuild/meson/issues/14946).
12 dependencies = [
13 atomic
14 ]
15
16 exe = executable(
17 'a',
18 'a.c',
19 dependencies : dependencies,
20 install : false,
21 )
22
23 test('basic', exe)