Skip to content

Commit

Permalink
Fix gtest installation setup with submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruskal-google committed May 4, 2023
1 parent 99b8328 commit ce07c45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/gtest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ else()
"GTEST_CREATE_SHARED_LIBRARY=1"
)

if (protobuf_INSTALL)
set(protobuf_INSTALL_TESTS ON)
endif()
endif()
if (protobuf_INSTALL)
set(protobuf_INSTALL_TESTS ON)
endif()

target_link_libraries(gmock ${CMAKE_THREAD_LIBS_INIT})
Expand Down

0 comments on commit ce07c45

Please sign in to comment.