summaryrefslogtreecommitdiffstats
path: root/test cases/common/250 system include dir/meson.build
blob: 724a8e49cb7b83df7cef1eac743c04573906337d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
project('system_include_dir', 'cpp',
    version : '0.1',
    default_options : 'werror=true',
)

compiler_id = meson.get_compiler('cpp').get_id()
if not ['gcc', 'clang', 'clang-cl'].contains(compiler_id)
  error('MESON_SKIP_TEST: compiler @0@ either doesn\'t support is_system includes or needs to have support for this test added'.format(compiler_id))
endif

lib_include_directories = include_directories('lib', is_system: true)
add_project_arguments('-Wsign-conversion', language: 'cpp')
executable('system_include_dir_test', sources: 'main.cpp', include_directories: lib_include_directories)