summaryrefslogtreecommitdiff
path: root/debian/patches/use_local_gtest2.diff
blob: 37f3e7d0c94dc066776e0ac41a8ad9e861bdc73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Benjamin Barenblat <bbaren@google.com>
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)