aboutsummaryrefslogtreecommitdiff
path: root/test cases/frameworks
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-10-27 11:02:04 -0700
committerXavier Claessens <xclaesse@gmail.com>2021-10-27 20:50:29 -0400
commitae35b1f45ac5850547f2db52b7b50a54789fcca1 (patch)
treea992bf7bf61c6c19b56ddfc50c38970fd1c9e026 /test cases/frameworks
parent3902bd4ef15ed1c50b008ba2e0e0dad79ff185f4 (diff)
downloadmeson-ae35b1f45ac5850547f2db52b7b50a54789fcca1.zip
meson-ae35b1f45ac5850547f2db52b7b50a54789fcca1.tar.gz
meson-ae35b1f45ac5850547f2db52b7b50a54789fcca1.tar.bz2
modules/gnome: ensure that `install_dir` is set
The `mkenums` functions can have this unset if, and only if, the c file only variant is called. Due to side effects if the header file is generated then `install_dir` is ensured to be set for the c file. I have removed this side effect so that our tests actually cover this case. Fixes #9472
Diffstat (limited to 'test cases/frameworks')
-rw-r--r--test cases/frameworks/7 gnome/mkenums/meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/test cases/frameworks/7 gnome/mkenums/meson.build b/test cases/frameworks/7 gnome/mkenums/meson.build
index 8ff05ba..4cf4dcf 100644
--- a/test cases/frameworks/7 gnome/mkenums/meson.build
+++ b/test cases/frameworks/7 gnome/mkenums/meson.build
@@ -34,9 +34,9 @@ enums_c2 = gnome.mkenums('abc2',
sources : 'meson-sample.h',
depends : [enums_h1, enums_h2],
c_template : 'enums2.c.in',
- ftail : '/* trailing source file info */',
- install_header : true,
- install_dir : get_option('includedir'))
+ ftail : '/* trailing source file info */')
+# explicitly don't set install_dir here, for bug testing
+# See https://github.com/mesonbuild/meson/issues/9472
conf = configuration_data()
conf.set('ENUM_FILE', 'enums2.h')