The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
375 B

project('nobuilddir', 'c',
default_options : ['werror=true', 'buildtype=plain'])
cc = meson.get_compiler('c')
incwarg = '-Wmissing-include-dirs'
if cc.has_argument(incwarg)
executable('prog', 'prog.c',
c_args : incwarg,
include_directories : include_directories('include'))
else
error('MESON_SKIP_TEST compiler does not support bad inc dir argument.')
endif