File: 0002-Use-system-googletest.patch

package info (click to toggle)
iceoryx 2.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,260 kB
  • sloc: cpp: 94,127; ansic: 1,443; sh: 1,436; python: 1,377; xml: 80; makefile: 61
file content (22 lines) | stat: -rw-r--r-- 693 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
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Mon, 1 Nov 2021 13:29:57 +0100
Subject: Use system googletest

Forwarded: not-needed
---
 iceoryx_meta/tests.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iceoryx_meta/tests.cmake b/iceoryx_meta/tests.cmake
index cb16010..3adc7cd 100644
--- a/iceoryx_meta/tests.cmake
+++ b/iceoryx_meta/tests.cmake
@@ -16,7 +16,7 @@
 cmake_minimum_required(VERSION 3.16)
 
 if (BUILD_TEST)
-    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/googletest ${CMAKE_BINARY_DIR}/dependencies/googletest/prebuild)
+    find_package(GTest REQUIRED)
 
     ### create component list
     set(COMPONENTS "hoofs" "posh")