Use system googletest
authorBoyuan Yang <byang@debian.org>
Tue, 28 Nov 2023 04:03:28 +0000 (23:03 -0500)
committerSebastian Ramacher <sramacher@debian.org>
Mon, 1 Apr 2024 13:14:00 +0000 (15:14 +0200)
Gbp-Pq: Name 0002-Use-system-googletest.patch

cmake/libgav1_build_definitions.cmake
tests/libgav1_tests.cmake

index 1465679b13038e8d07697902adf169190cc8ace1..16ddd4a7af9a06e39cca6fc55bd40cbd1cda365c 100644 (file)
@@ -43,9 +43,9 @@ macro(libgav1_set_build_definitions)
   list(APPEND libgav1_include_paths "${libgav1_root}" "${libgav1_root}/src"
               "${libgav1_build}" "${libgav1_root}/third_party/abseil-cpp")
   list(APPEND libgav1_gtest_include_paths
-              "third_party/googletest/googlemock/include"
-              "third_party/googletest/googletest/include"
-              "third_party/googletest/googletest")
+              "/usr/src/googletest/googlemock/include"
+              "/usr/src/googletest/googletest/include"
+              "/usr/src/googletest/googletest")
   list(APPEND libgav1_test_include_paths ${libgav1_include_paths}
               ${libgav1_gtest_include_paths})
   list(APPEND libgav1_defines "LIBGAV1_CMAKE=1"
index 95f6361eeca6b8f51c9ee12590dc53770aa25a32..209054b07036877a7e03fd96baac7053db8285df 100644 (file)
@@ -17,7 +17,7 @@ if(LIBGAV1_LIBGAV1_TESTS_CMAKE_)
 endif() # LIBGAV1_LIBGAV1_TESTS_CMAKE_
 set(LIBGAV1_LIBGAV1_TESTS_CMAKE_ 1)
 
-set(libgav1_googletest "${libgav1_root}/third_party/googletest")
+set(libgav1_googletest "/usr/src/googletest/")
 if(NOT LIBGAV1_ENABLE_TESTS OR NOT EXISTS "${libgav1_googletest}")
   macro(libgav1_add_tests_targets)