Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit b120a12

Browse files
authored
Merge pull request #5794 from moneroexamples/master
Upgrade GTest to 1.8.1
2 parents a3cdc87 + 47d2be7 commit b120a12

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

cmake/Hunter/config.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ hunter_config(
2525
URL https://github.com/chfast/intx/archive/v0.4.0.tar.gz
2626
SHA1 8a2a0b0efa64899db972166a9b3568a6984c61bc
2727
)
28+
29+
hunter_config(
30+
GTest
31+
VERSION 1.8.1
32+
URL https://github.com/google/googletest/archive/release-1.8.1.tar.gz
33+
SHA1 152b849610d91a9dfa1401293f43230c2e0c33f8
34+
CMAKE_ARGS BUILD_GMOCK=OFF gtest_force_shared_crt=ON
35+
)

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ add_executable(aleth-unittests ${unittest_sources})
4242
target_include_directories(aleth-unittests PRIVATE ${UTILS_INCLUDE_DIR})
4343
target_link_libraries(aleth-unittests PRIVATE
4444
web3jsonrpc ethashseal devcrypto devcore
45-
GTest::gtest GTest::main
45+
GTest::gtest GTest::gtest_main
4646
)
4747
gtest_add_tests(TARGET aleth-unittests TEST_PREFIX unittests/ TEST_LIST unittests)
4848
set_tests_properties(${unittests} PROPERTIES TIMEOUT ${timeout})

0 commit comments

Comments
 (0)