Skip to content

Commit b4b4f9c

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 364d9ab commit b4b4f9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)