File: 0001-use-local-googletest-src.patch

package info (click to toggle)
cpu-features 0.9.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 944 kB
  • sloc: ansic: 3,498; cpp: 3,219; sh: 502; makefile: 286
file content (38 lines) | stat: -rw-r--r-- 1,345 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Shengjing Zhu <zhsj@debian.org>
Date: Fri, 17 Jun 2022 01:23:10 +0800
Subject: use local googletest src

Forwarded: not-needed
---
 CMakeLists.txt                     | 2 +-
 cmake/googletest.CMakeLists.txt.in | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 81451d4..1f14611 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,7 +203,7 @@ if(BUILD_TESTING)
 
     # Add googletest directly to our build. This defines the gtest and
     # gtest_main targets.
-    add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
+    add_subdirectory(/usr/src/googletest
                      ${CMAKE_BINARY_DIR}/googletest-build
                      EXCLUDE_FROM_ALL)
   endif()
diff --git a/cmake/googletest.CMakeLists.txt.in b/cmake/googletest.CMakeLists.txt.in
index 8003c2c..e52b102 100644
--- a/cmake/googletest.CMakeLists.txt.in
+++ b/cmake/googletest.CMakeLists.txt.in
@@ -4,9 +4,7 @@ project(googletest-download NONE)
 
 include(ExternalProject)
 ExternalProject_Add(googletest
-  GIT_REPOSITORY    https://github.com/google/googletest.git
-  GIT_TAG           main
-  SOURCE_DIR        "${CMAKE_BINARY_DIR}/googletest-src"
+  SOURCE_DIR        "/usr/src/googletest"
   BINARY_DIR        "${CMAKE_BINARY_DIR}/googletest-build"
   CONFIGURE_COMMAND ""
   BUILD_COMMAND     ""