Skip to content

Commit

Permalink
meson: fix tests as subproject
Browse files Browse the repository at this point in the history
looks like relative path doesn't work correctly.

Signed-off-by: Rosen Penev <[email protected]>
(cherry picked from commit 3f1fab4)
  • Loading branch information
neheb authored and mergify[bot] committed Jun 25, 2024
1 parent 034b981 commit b042e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unitTests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if host_machine.system() == 'windows' and get_option('default_library') != 'stat
test_sources += int_lib
endif

t_args = ['-UEXIV2API', '-DEXIV2API=', '-DTESTDATA_PATH="@0@"'.format('..' / 'test' / 'data')]
t_args = ['-UEXIV2API', '-DEXIV2API=', '-DTESTDATA_PATH="@0@"'.format(meson.current_source_dir() / '..' / 'test' / 'data')]

unit_tests = executable(
'unit_tests',
Expand Down

0 comments on commit b042e08

Please sign in to comment.