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]>
  • Loading branch information
neheb committed Jun 23, 2024
1 parent e843bc4 commit 3f1fab4
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 3f1fab4

Please sign in to comment.