File: use-debian-googletest.diff

package info (click to toggle)
c-ares 1.34.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,732 kB
  • sloc: ansic: 31,201; cpp: 13,236; sh: 4,454; makefile: 124
file content (20 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Gregor Jasny <gjasny@googlemail.com>
Date: Thu, 18 Jul 2024 22:04:29 +0200
Subject: Use Debian packaged GoogleTest

Forwarded: not-needed
---
 test/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -7,7 +7,7 @@
 ENDIF ()
 
 find_package(Threads)
-find_package(GTest REQUIRED)
+add_subdirectory(/usr/src/googletest googletest EXCLUDE_FROM_ALL)
 
 IF (CMAKE_VERSION VERSION_LESS "3.23.0")
   Message("GoogleTest found, cmake version too old to verify GMock, look for errors...")