@@ -25,15 +25,23 @@ target_compile_options(sanitizer-exceptions INTERFACE -fno-sanitize=vptr)
25
25
26
26
macro (get_catch2)
27
27
if (NOT TARGET Catch2::Catch2WithMain)
28
- add_versioned_package("gh:catchorg/Catch2@3.6 .0" )
28
+ add_versioned_package("gh:catchorg/Catch2@3.8 .0" )
29
29
list (APPEND CMAKE_MODULE_PATH ${Catch2_SOURCE_DIR} /extras)
30
30
include (Catch)
31
+
32
+ # Workaround for https://github.com/catchorg/Catch2/issues/2910
33
+ add_library (clean-catch2-warnings INTERFACE )
34
+ target_compile_options (
35
+ clean-catch2-warnings
36
+ INTERFACE
37
+ $<$<AND :$<CXX_COMPILER_ID:Clang>,$<VERSION_GREATER_EQUAL :${CMAKE_CXX_COMPILER_VERSION} ,19>>:-Wno-c++20-extensions>
38
+ )
31
39
endif ()
32
40
endmacro ()
33
41
34
42
macro (get_gtest)
35
43
if (NOT TARGET gtest)
36
- add_versioned_package("gh:google/googletest@1.14.0 " )
44
+ add_versioned_package("gh:google/googletest@1.15.2 " )
37
45
include (GoogleTest)
38
46
endif ()
39
47
endmacro ()
@@ -45,7 +53,7 @@ macro(get_gunit)
45
53
NAME
46
54
gunit
47
55
GIT_TAG
48
- v1.14.0
56
+ 467b07d
49
57
GITHUB_REPOSITORY
50
58
cpp-testing/GUnit
51
59
DOWNLOAD_ONLY
@@ -55,7 +63,7 @@ endmacro()
55
63
56
64
macro (get_snitch)
57
65
if (NOT TARGET snitch::snitch)
58
- add_versioned_package("gh:snitch-org/snitch@1.2.5 " )
66
+ add_versioned_package("gh:snitch-org/snitch@1.3.1 " )
59
67
endif ()
60
68
endmacro ()
61
69
@@ -90,7 +98,7 @@ endmacro()
90
98
91
99
macro (add_rapidcheck)
92
100
if (NOT TARGET rapidcheck)
93
- add_versioned_package(NAME rapidcheck GIT_TAG 1c91f40 GITHUB_REPOSITORY
101
+ add_versioned_package(NAME rapidcheck GIT_TAG ff6af6f GITHUB_REPOSITORY
94
102
emil-e/rapidcheck)
95
103
add_subdirectory (
96
104
${rapidcheck_SOURCE_DIR} /extras/catch
@@ -134,6 +142,7 @@ function(add_unit_test_target name)
134
142
catch_discover_tests(${name} )
135
143
endif ()
136
144
endif ()
145
+ target_link_libraries (${name} PRIVATE clean-catch2-warnings)
137
146
elseif (UNIT_GTEST)
138
147
target_link_libraries_system(
139
148
${name}
@@ -402,7 +411,8 @@ function(add_fuzz_test_target name)
402
411
rapidcheck
403
412
rapidcheck_gtest
404
413
rapidcheck_gmock
405
- fuzztest::fuzztest_gtest_main)
414
+ fuzztest::fuzztest_gtest_main
415
+ re2::re2)
406
416
if (FUZZ_NORANDOM)
407
417
message (
408
418
WARNING
0 commit comments