Skip to content

Commit

Permalink
Don't hardcode path to config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
notpeelz committed Jun 26, 2024
1 parent 7d94775 commit 2a3d57a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2a3d57a

Please sign in to comment.