In the case that gtest has been installed via apt (i.e., apt install
libgtest-dev), meson provides the -I options indicating the directory
that does not exist. Therefore, it is failed to build when
'-Wmissing-include-dirs' is set. This patch works around this issue.
Signed-off-by: Wook Song <wook16.song@samsung.com>
'-Wformat-nonliteral',
'-Wformat-security',
'-Winit-self',
- '-Wmissing-include-dirs',
'-Waddress',
'-Wno-multichar',
'-Wvla',
'-Wpointer-arith'
]
+# Work around the issue related to gtest cflags
+if meson.version().version_compare('<0.46')
+ warning_flags += '-Wmissing-include-dirs'
+endif
warning_c_flags = [
'-Wmissing-declarations',