1project('persubproject options', 'c', 2 default_options : ['werror=true', 3 'warning_level=3']) 4 5assert(get_option('default_library') == 'both', 'Parent default_library should be "both"') 6assert(get_option('werror')) 7assert(get_option('warning_level') == '3') 8 9# Check it build both by calling a method only both_libraries target implement 10lib = library('lib1', 'foo.c') 11lib.get_static_lib() 12 13subproject('sub1') 14subproject('sub2', default_options : ['default_library=static']) 15