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')
)
if get_option('introspection').allowed()
if get_option('introspection').enabled()
libmks_gir_extra_args = [
'--c-include=libmks.h',
'--quiet',

View File

@ -164,7 +164,7 @@ if have_tests
endif
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')
endif