diff options
Diffstat (limited to 'meson/test cases/common/43 subproject options/subprojects/subproject')
-rw-r--r-- | meson/test cases/common/43 subproject options/subprojects/subproject/meson.build | 5 | ||||
-rw-r--r-- | meson/test cases/common/43 subproject options/subprojects/subproject/meson_options.txt | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/meson/test cases/common/43 subproject options/subprojects/subproject/meson.build b/meson/test cases/common/43 subproject options/subprojects/subproject/meson.build new file mode 100644 index 000000000..5000b8643 --- /dev/null +++ b/meson/test cases/common/43 subproject options/subprojects/subproject/meson.build @@ -0,0 +1,5 @@ +project('subproject', 'c') + +if get_option('opt') + error('option set when it should be unset.') +endif diff --git a/meson/test cases/common/43 subproject options/subprojects/subproject/meson_options.txt b/meson/test cases/common/43 subproject options/subprojects/subproject/meson_options.txt new file mode 100644 index 000000000..ac78533e1 --- /dev/null +++ b/meson/test cases/common/43 subproject options/subprojects/subproject/meson_options.txt @@ -0,0 +1 @@ +option('opt', type : 'boolean', value : false, description : 'subproject option') |