From 6e2c034f8024dd0fa1d3180c26ec4f75f41b92ce Mon Sep 17 00:00:00 2001 From: Giuliano Procida Date: Thu, 25 Apr 2024 20:14:56 +0100 Subject: CMake: express current dependency on Catch2 v2 This is needed to prevent compilation errors on systems where Catch2 has been upgraded to v3. PiperOrigin-RevId: 628152977 Change-Id: I9ecfbb502d2173f45611ac2bd0ef7a03f4d5f70e --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9587c6a..38bb294 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,11 +117,11 @@ endforeach() # Testing -find_package(Catch2 QUIET) +find_package(Catch2 2 QUIET) if(NOT Catch2_FOUND) - message(NOTICE "Catch2 testing framework not found. Disabling tests.") + message(NOTICE "Catch2 v2 testing framework not found. Disabling tests.") else() enable_testing() -- cgit v1.2.3