We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21216f4 commit 0ad5b43Copy full SHA for 0ad5b43
tests/CMakeLists.txt
@@ -1,5 +1,9 @@
1
-
2
-find_package(Catch2 CONFIG REQUIRED)
+cmake_policy(CMP0134 NEW) # allow find_package to use the CMAKE_IMPORT_FILE_VERSION variable
+find_package(Catch2 CONFIG)
3
+if (NOT Catch2_FOUND)
4
+ message(NOTICE "Catch2 not found or is not compatible.")
5
+ return()
6
+endif ()
7
message("catch2 is ${Catch2_CONFIG}")
8
9
add_executable(all_tests
0 commit comments