Skip to content

Commit cd87a4f

Browse files
committed
Catch2 version dependency + 'tests' option
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
1 parent ae8b24f commit cd87a4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meson.build

+2-1
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,12 @@ endif
586586

587587
catch2 = dependency(
588588
'catch2',
589+
version: '>=3.7.1',
589590
default_options: [ 'tests=false' ],
590591
fallback: ['catch2', 'catch2_dep'],
591592
required: get_option('tests'),
592593
)
593-
if catch2.found()
594+
if catch2.found() and get_option('tests').enabled()
594595
subdir('test')
595596
endif
596597

0 commit comments

Comments
 (0)