1
0
Fork 0

Update Catch2 version

This commit is contained in:
Pcornat 2025-12-13 12:31:35 +01:00
commit 22f09c47fd
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD

View file

@ -7,7 +7,7 @@ if (NOT Catch2_FOUND)
fetchcontent_declare( fetchcontent_declare(
Catch2 Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2
GIT_TAG v3.5.3 GIT_TAG v3.11.0
EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL
OVERRIDE_FIND_PACKAGE OVERRIDE_FIND_PACKAGE
) )
@ -20,7 +20,14 @@ enable_testing()
include(Catch) include(Catch)
include(CatchAddTests) include(CatchAddTests)
add_executable(tests tests_stream.cpp) add_executable(tests
target_link_libraries(tests Catch2::Catch2WithMain) tests_stream.cpp
)
target_link_libraries(tests Catch2::Catch2WithMain raiiSafeCuda)
set_target_properties(tests PROPERTIES
CXX_STANDARD 20
CXX_EXTENSIONS OFF
INTERPROCEDURAL_OPTIMIZATION ON
)
catch_discover_tests(tests WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) catch_discover_tests(tests WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})