From ce07c45a1027b9736f8c111c8aae864ac242108f Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Thu, 4 May 2023 10:17:06 -0700 Subject: [PATCH] Fix gtest installation setup with submodules --- cmake/gtest.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/gtest.cmake b/cmake/gtest.cmake index 5562380cae6a..cf516d6d53b8 100644 --- a/cmake/gtest.cmake +++ b/cmake/gtest.cmake @@ -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})