aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuliano Procida <gprocida@google.com>2024-04-25 20:14:56 +0100
committerGiuliano Procida <gprocida@google.com>2024-04-25 22:06:24 +0100
commit6e2c034f8024dd0fa1d3180c26ec4f75f41b92ce (patch)
tree905d6cf1086731ac6e842ccf8702b138cd30e7ab
parent27ca78441c3fd6ddfd0a06587272b5d748fb4d4a (diff)
downloadstg-6e2c034f8024dd0fa1d3180c26ec4f75f41b92ce.tar.gz
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
-rw-r--r--CMakeLists.txt4
1 files 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()