| 1 |
project('include directories test', 'c') |
| 2 |
|
| 3 |
cm = import('cmake') |
| 4 |
|
| 5 |
sub_pro = cm.subproject('cmTest') |
| 6 |
sub_dep = sub_pro.dependency('cmTest') |
| 7 |
|
| 8 |
missing_inc_dir_arg = '-Werror=missing-include-dirs' |
| 9 |
has_missing_inc_dir = meson.get_compiler('c').has_argument(missing_inc_dir_arg) |
| 10 |
if not has_missing_inc_dir |
| 11 |
error('MESON_SKIP_TEST: Compiler does not support ' + missing_inc_dir_arg) |
| 12 |
else |
| 13 |
add_project_arguments(missing_inc_dir_arg, language: 'c') |
| 14 |
endif |
| 15 |
|
| 16 |
exe1 = executable('exe1', ['main.c'], dependencies: [sub_dep]) |
| 17 |
test('test1', exe1) |