File: meson.build

package info (click to toggle)
numpy 1%3A2.2.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 83,420 kB
  • sloc: python: 248,499; asm: 232,365; ansic: 216,874; cpp: 135,657; f90: 1,540; sh: 938; fortran: 558; makefile: 409; sed: 139; xml: 109; java: 92; perl: 79; cs: 54; javascript: 53; objc: 29; lex: 13; yacc: 9
file content (13 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (8)
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)