@@ -6,20 +6,21 @@ SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
6
6
set (CMAKE_CXX_STANDARD 17)
7
7
8
8
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR} /cmake" )
9
+ set (HUNTER_TLS_VERIFY ON )
9
10
include ("cmake/HunterGate.cmake" )
10
11
include ("cmake/Catch.cmake" )
11
12
12
13
HunterGate(
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 "
15
16
)
16
17
17
18
project (SqliteModernCpp)
18
19
19
20
hunter_add_package(Catch)
20
21
hunter_add_package(sqlite3)
21
22
22
- find_package (Catch CONFIG REQUIRED)
23
+ find_package (Catch2 CONFIG REQUIRED)
23
24
find_package (sqlite3 CONFIG REQUIRED)
24
25
25
26
set (TEST_SOURCE_DIR ${CMAKE_SOURCE_DIR} /tests)
@@ -37,9 +38,9 @@ target_include_directories(sqlite_modern_cpp INTERFACE hdr/)
37
38
add_executable (tests ${TEST_SOURCES} )
38
39
target_include_directories (tests INTERFACE ${SQLITE3_INCLUDE_DIRS} )
39
40
if (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)
41
42
else ()
42
- target_link_libraries (tests Catch::Catch sqlite_modern_cpp sqlite3::sqlite3)
43
+ target_link_libraries (tests Catch2::Catch2 sqlite_modern_cpp sqlite3::sqlite3)
43
44
endif ()
44
45
45
46
catch_discover_tests(tests)
0 commit comments