test cases/common/223 persubproject options/subprojects/sub1/meson.build
raw| 1 | project('sub1', 'c', 'cpp', |
| 2 | default_options : ['warning_level=0']) |
| 3 | |
| 4 | assert(get_option('default_library') == 'both', 'Should inherit parent project default_library') |
| 5 | assert(get_option('warning_level') == '0') |
| 6 | assert(get_option('cpp_std') == 'c++11') |
| 7 | |
| 8 | # Check it build both by calling a method only both_libraries target implement |
| 9 | lib = library('lib1', 'foo.c') |
| 10 | lib.get_static_lib() |