diff --git a/meson.build b/meson.build index 29e7225d..620378ea 100644 --- a/meson.build +++ b/meson.build @@ -363,12 +363,12 @@ if enable_introspection dependency('gobject-introspection-1.0', version: '>= 0.6.2') endif -configure_file( +config_h = configure_file( output: 'config.h', configuration: config_data, ) -compiler_common_flags += ['-include', 'config.h'] +compiler_common_flags += ['-include', config_h.full_path()] add_project_arguments(compiler_common_flags + compiler_c_flags, language: 'c') add_project_arguments(compiler_common_flags + compiler_cpp_flags, language: 'cpp')