Skip to content

Commit 5c30c63

Browse files
committed
Meson: Add fallback for catch2 dependency
For historic Meson versions, we need to add an explicit fallback tag to the dependency. Catch2 is available in the needed form since version 3.4.1, not 3.4.0. Signed-off-by: Lars Froehlich <lars.froehlich@desy.de>
1 parent 6c5f122 commit 5c30c63

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ test('all',
1212
executable(meson.project_name() + '_test',
1313
test_src,
1414
dependencies : [
15-
dependency('catch2', version : '>=3.4.0'),
15+
dependency('catch2', version : '>=3.4.1',
16+
fallback : [ 'catch2', 'catch2_dep' ]),
1617
libgit4cpp_dep,
1718
],
1819
),

0 commit comments

Comments
 (0)