always pull in googletest-1.8 as external project
Summary:
Relying on the default find for gtest / gmock (via LIBGMOCK_FOUND) is set to
true if another version of gmock is already installed and can be incompatible
MODIFY
cmake/QuicTest.cmake
cmake/QuicTest.cmake
include(CTest)
if(BUILD_TESTS)
include(GoogleTest)
- find_package(GMock)
- if(NOT LIBGMOCK_FOUND)
include(ExternalProject)
# Download and install GoogleMock
@@ -48,7 +46,6 @@ if(BUILD_TESTS)
set(LIBGMOCK_INCLUDE_DIR "${source_dir}/googlemock/include")
set(LIBGTEST_INCLUDE_DIR "${source_dir}/googletest/include")
endif()
-endif()
function(quic_add_test)
if(NOT BUILD_TESTS)

always pull in googletest-1.8 as external project

Summary:
Relying on the default find for gtest / gmock (via LIBGMOCK_FOUND) is set to
true if another version of gmock is already installed and can be incompatible

Reviewed By: siyengar

Differential Revision: D15216828

fbshipit-source-id: 94d6e1a14914181842e34bd262b1a46c59155435