build: Use enabled to check for existance of feature options

This commit is contained in:
Bilal Elmoussaoui 2023-09-07 21:26:34 +02:00
parent 0b9e08a798
commit 9e13893267
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ pkg.generate(
install_dir: join_paths(get_option('libdir'), 'pkgconfig') install_dir: join_paths(get_option('libdir'), 'pkgconfig')
) )
if get_option('introspection').allowed() if get_option('introspection').enabled()
libmks_gir_extra_args = [ libmks_gir_extra_args = [
'--c-include=libmks.h', '--c-include=libmks.h',
'--quiet', '--quiet',

View File

@ -164,7 +164,7 @@ if have_tests
endif endif
summary('Enabled', have_tests, section: 'Tests') summary('Enabled', have_tests, section: 'Tests')
if get_option('docs') and get_option('introspection').allowed() if get_option('docs') and get_option('introspection').enabled()
subdir('docs') subdir('docs')
endif endif