aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/230 persubproject options/meson.build
blob: f76a70cd37869fb3474ad56b4372bf082885ef53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
project('persubproject options', 'c',
  default_options : ['default_library=both',
                     'werror=true',
                     'warning_level=3'])

assert(get_option('default_library') == 'both', 'Parent default_library should be "both"')
assert(get_option('werror'))
assert(get_option('warning_level') == '3')

# Check it build both by calling a method only both_libraries target implement
lib = library('lib1', 'foo.c')
lib.get_static_lib()

subproject('sub1')
subproject('sub2', default_options : ['default_library=static'])