aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/123 no buildincdir/meson.build
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-11-02 19:23:18 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-11-03 21:05:20 +0200
commit9d1e747d17c75a288d0b58a8ac973dab1712afbf (patch)
tree15dedfab78da4ad20ce272e65d7a7876ae717181 /test cases/common/123 no buildincdir/meson.build
parentff50f724bbf49739abbee9cbb4c8e6200849738f (diff)
downloadmeson-9d1e747d17c75a288d0b58a8ac973dab1712afbf.zip
meson-9d1e747d17c75a288d0b58a8ac973dab1712afbf.tar.gz
meson-9d1e747d17c75a288d0b58a8ac973dab1712afbf.tar.bz2
Condense test directory names again.
Diffstat (limited to 'test cases/common/123 no buildincdir/meson.build')
-rw-r--r--test cases/common/123 no buildincdir/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/common/123 no buildincdir/meson.build b/test cases/common/123 no buildincdir/meson.build
new file mode 100644
index 0000000..53f1a7f
--- /dev/null
+++ b/test cases/common/123 no buildincdir/meson.build
@@ -0,0 +1,14 @@
+project('nobuilddir', 'c',
+ default_options : ['werror=true', 'buildtype=plain'])
+
+cc = meson.get_compiler('c')
+
+incwarg = '-Wmissing-include-dirs'
+
+if cc.has_argument(incwarg)
+ executable('prog', 'prog.c',
+ c_args : incwarg,
+ include_directories : include_directories('include'))
+else
+ error('MESON_SKIP_TEST compiler does not support bad inc dir argument.')
+endif