Skip to content

Commit

Permalink
meson: fix version.h generation if build as a meson subproject
Browse files Browse the repository at this point in the history
@SOURCE_ROOT@ points to parent project, instead use current source dir
to ensure that we get libplacebo version.
  • Loading branch information
kasper93 authored and haasn committed Mar 8, 2024
1 parent ab1c6fd commit 0d3542d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ sources += configure_file(

version_h = custom_target(
command: [ python, join_paths(meson.current_source_dir(), 'version.py'),
'@INPUT@', '@OUTPUT@', '@SOURCE_ROOT@', version_pretty ],
'@INPUT@', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', version_pretty ],
input: 'version.h.in',
output: 'version.h',
build_by_default: true,
Expand Down

0 comments on commit 0d3542d

Please sign in to comment.