Fix gtest installation setup with submodules

pull/12660/head
Mike Kruskal 2 years ago
parent 99b83289e9
commit ce07c45a10
  1. 2
      cmake/gtest.cmake

@ -32,10 +32,10 @@ else()
"GTEST_CREATE_SHARED_LIBRARY=1"
)
endif()
if (protobuf_INSTALL)
set(protobuf_INSTALL_TESTS ON)
endif()
endif()
target_link_libraries(gmock ${CMAKE_THREAD_LIBS_INIT})
add_library(gmock_main STATIC "${googlemock_source_dir}/src/gmock_main.cc")

Loading…
Cancel
Save