Skip to content

Commit 0ad5b43

Browse files
committed
try fixing windows x86 tests
1 parent 21216f4 commit 0ad5b43

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
2-
find_package(Catch2 CONFIG REQUIRED)
1+
cmake_policy(CMP0134 NEW) # allow find_package to use the CMAKE_IMPORT_FILE_VERSION variable
2+
find_package(Catch2 CONFIG)
3+
if (NOT Catch2_FOUND)
4+
message(NOTICE "Catch2 not found or is not compatible.")
5+
return()
6+
endif ()
37
message("catch2 is ${Catch2_CONFIG}")
48

59
add_executable(all_tests

0 commit comments

Comments
 (0)