Skip to content

Commit 2a3d57a

Browse files
committed
Don't hardcode path to config.h
1 parent 7d94775 commit 2a3d57a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,12 @@ if enable_introspection
363363
dependency('gobject-introspection-1.0', version: '>= 0.6.2')
364364
endif
365365

366-
configure_file(
366+
config_h = configure_file(
367367
output: 'config.h',
368368
configuration: config_data,
369369
)
370370

371-
compiler_common_flags += ['-include', 'config.h']
371+
compiler_common_flags += ['-include', config_h.full_path()]
372372

373373
add_project_arguments(compiler_common_flags + compiler_c_flags, language: 'c')
374374
add_project_arguments(compiler_common_flags + compiler_cpp_flags, language: 'cpp')

0 commit comments

Comments
 (0)