aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/223 persubproject options/subprojects/sub1/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/223 persubproject options/subprojects/sub1/meson.build')
-rw-r--r--meson/test cases/common/223 persubproject options/subprojects/sub1/meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson/test cases/common/223 persubproject options/subprojects/sub1/meson.build b/meson/test cases/common/223 persubproject options/subprojects/sub1/meson.build
new file mode 100644
index 000000000..4e4bc1ba0
--- /dev/null
+++ b/meson/test cases/common/223 persubproject options/subprojects/sub1/meson.build
@@ -0,0 +1,9 @@
+project('sub1', 'c',
+ default_options : ['warning_level=0'])
+
+assert(get_option('default_library') == 'both', 'Should inherit parent project default_library')
+assert(get_option('warning_level') == '0')
+
+# Check it build both by calling a method only both_libraries target implement
+lib = library('lib1', 'foo.c')
+lib.get_static_lib()