@@ -6,20 +6,21 @@ SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
66set (CMAKE_CXX_STANDARD 17)
77
88set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR} /cmake" )
9+ set (HUNTER_TLS_VERIFY ON )
910include ("cmake/HunterGate.cmake" )
1011include ("cmake/Catch.cmake" )
1112
1213HunterGate(
13- URL "https://github.com/ruslo/hunter/archive/v0.19.227 .tar.gz"
14- SHA1 "808b778a443fcdf19c2d18fea8fa4bb59d16596a "
14+ URL "https://github.com/ruslo/hunter/archive/v0.23.214 .tar.gz"
15+ SHA1 "e14bc153a7f16d6a5eeec845fb0283c8fad8c358 "
1516)
1617
1718project (SqliteModernCpp)
1819
1920hunter_add_package(Catch)
2021hunter_add_package(sqlite3)
2122
22- find_package (Catch CONFIG REQUIRED)
23+ find_package (Catch2 CONFIG REQUIRED)
2324find_package (sqlite3 CONFIG REQUIRED)
2425
2526set (TEST_SOURCE_DIR ${CMAKE_SOURCE_DIR} /tests)
@@ -37,9 +38,9 @@ target_include_directories(sqlite_modern_cpp INTERFACE hdr/)
3738add_executable (tests ${TEST_SOURCES} )
3839target_include_directories (tests INTERFACE ${SQLITE3_INCLUDE_DIRS} )
3940if (ENABLE_SQLCIPHER_TESTS)
40- target_link_libraries (tests Catch::Catch sqlite_modern_cpp sqlite3::sqlite3 -lsqlcipher)
41+ target_link_libraries (tests Catch2::Catch2 sqlite_modern_cpp sqlite3::sqlite3 -lsqlcipher)
4142else ()
42- target_link_libraries (tests Catch::Catch sqlite_modern_cpp sqlite3::sqlite3)
43+ target_link_libraries (tests Catch2::Catch2 sqlite_modern_cpp sqlite3::sqlite3)
4344endif ()
4445
4546catch_discover_tests(tests)
0 commit comments