Replies: 1 comment
-
Solved by adding project(
'smth',
'cpp',
version: '1.0.0',
default_options: [
'cpp_std=c++20',
'warning_level=3',
],
)
compiler = meson.get_compiler('cpp')
add_project_arguments(
compiler.get_supported_arguments(
[
'-Wno-unknown-pragmas',
],
),
language: 'cpp',
)
includes_dir = include_directories(
'includes_dir',
is_system: true,
)
subdir('src')
executable(
meson.project_name(),
src_sources,
include_directories: includes_dir,
implicit_include_directories: false,
install: true,
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a directory that contains a bunch of header files. I add it like this:
I also set
'warning_level=3'
for my project. This causes GCC to provide warning for code insidekernel_includes_dir
. How do I exclude this dir from being checked for errors?kernel_includes_dir
do not contain
meson.build` file. And what do I even put there?Complete top
meson.build
file:Beta Was this translation helpful? Give feedback.
All reactions