File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11include (FetchContent)
22FetchContent_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
77set (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 )
3333target_link_libraries (UnitTests PUBLIC ${FOO_LIBRARY} )
3434
3535include (GoogleTest)
Original file line number Diff line number Diff line change @@ -14,5 +14,4 @@ void __asan_on_error() {
1414int main (int argc, char ** argv) {
1515 ::testing::InitGoogleTest (&argc, argv);
1616 return RUN_ALL_TESTS ();
17- ;
1817}
You can’t perform that action at this time.
0 commit comments