From: Benjamin Barenblat Subject: Support testing with a local googletest checkout, part 2 Forwarded: yes Applied-Upstream: https://github.com/abseil/abseil-cpp/commit/79e0dc11514df035a8d07a356f9ee1800fb2160c use_local_gtest.diff missed a necessary line; add it. The author works at Google. Upstream applied this patch as Piper revision 302947488 and exported it to GitHub; the Applied-Upstream URL above points to the exported commit. --- a/CMake/Googletest/DownloadGTest.cmake +++ b/CMake/Googletest/DownloadGTest.cmake @@ -38,6 +38,4 @@ # Add googletest directly to our build. This defines the gtest and gtest_main # targets. -add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src - ${CMAKE_BINARY_DIR}/googletest-build - EXCLUDE_FROM_ALL) +add_subdirectory(${absl_gtest_src_dir} ${absl_gtest_build_dir} EXCLUDE_FROM_ALL)