| 1 |
project('system_include_dir', 'cpp', |
| 2 |
version : '0.1', |
| 3 |
default_options : 'werror=true', |
| 4 |
) |
| 5 |
|
| 6 |
compiler_id = meson.get_compiler('cpp').get_id() |
| 7 |
if not ['gcc', 'clang', 'clang-cl'].contains(compiler_id) |
| 8 |
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)) |
| 9 |
endif |
| 10 |
|
| 11 |
lib_include_directories = include_directories('lib', is_system: true) |
| 12 |
add_project_arguments('-Wsign-conversion', language: 'cpp') |
| 13 |
executable('system_include_dir_test', sources: 'main.cpp', include_directories: lib_include_directories) |