pull/1260/head
parent
8f5b67434d
commit
f85c348b94
3 changed files with 19 additions and 6 deletions
@ -0,0 +1,9 @@ |
||||
project('subproject defaults', 'c', |
||||
default_options : ['defopoverride=defopt', # This should be overridden. |
||||
'fromcmdline=defopt'] # This should get the value set in command line. |
||||
) |
||||
|
||||
assert(get_option('fromcmdline') == 'cmdline', 'Default option defined in cmd line is incorrect: ' + get_option('fromcmdline')) |
||||
assert(get_option('defopoverride') == 'defopt', 'Default option without cmd line override is incorrect: ' + get_option('defopoverride')) |
||||
assert(get_option('fromoptfile') == 'optfile', 'Default value from option file is incorrect: ' + get_option('fromoptfile')) |
||||
|
@ -0,0 +1,3 @@ |
||||
option('defopoverride', type : 'string', value : 'optfile', description : 'A value for overriding.') |
||||
option('fromcmdline', type : 'string', value : 'optfile', description : 'A value for overriding.') |
||||
option('fromoptfile', type : 'string', value : 'optfile', description : 'A value for not overriding.') |
Loading…
Reference in new issue