Skip to content

Commit 13664a7

Browse files
committed
#1: use latest google test release
1 parent 4621dbe commit 13664a7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include(FetchContent)
22
FetchContent_Declare(
33
googletest
4-
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
4+
URL https://github.com/google/googletest/archive/refs/tags/v1.15.2.zip
55
)
66
# For Windows: Prevent overriding the parent project's compiler/linker settings
77
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
@@ -29,7 +29,7 @@ add_executable(
2929
${TEST_SOURCE_FILES}
3030
)
3131

32-
target_link_libraries(UnitTests PRIVATE GTest::gtest_main)
32+
target_link_libraries(UnitTests PRIVATE GTest::gtest_main GTest::gmock_main)
3333
target_link_libraries(UnitTests PUBLIC ${FOO_LIBRARY})
3434

3535
include(GoogleTest)

tests/main.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ void __asan_on_error() {
1414
int main(int argc, char** argv) {
1515
::testing::InitGoogleTest(&argc, argv);
1616
return RUN_ALL_TESTS();
17-
;
1817
}

0 commit comments

Comments
 (0)