Skip to content

Commit 901c7ed

Browse files
notpeelzjrybar-rh
authored andcommitted
Don't hardcode path to config.h
1 parent ede0df6 commit 901c7ed

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
@@ -375,12 +375,12 @@ if gettext
375375
config_data.set('ENABLE_GETTEXT', 1)
376376
endif
377377

378-
configure_file(
378+
config_h = configure_file(
379379
output: 'config.h',
380380
configuration: config_data,
381381
)
382382

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

385385
add_project_arguments(compiler_common_flags + compiler_c_flags, language: 'c')
386386
add_project_arguments(compiler_common_flags + compiler_cpp_flags, language: 'cpp')

0 commit comments

Comments
 (0)