Skip to content

Commit d3711e8

Browse files
Revert back to auto-fetch Catch2 (v3) if not found
Signed-off-by: Christian Parpart <[email protected]>
1 parent 579bb49 commit d3711e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ install(EXPORT boxed-cpp-targets
5454

5555
option(BOXED_CPP_TESTS "Enables building of unittests for boxed-cpp [default: OFF]" OFF)
5656
if(BOXED_CPP_TESTS)
57-
find_package(Catch2 REQUIRED)
57+
find_package(Catch2 3.4.0 QUIET)
58+
if(NOT Catch2_FOUND)
59+
ThirdPartiesAdd_Catch2()
60+
endif()
5861
enable_testing()
5962
add_executable(test-boxed-cpp
6063
test-boxed-cpp.cpp

0 commit comments

Comments
 (0)