File: use-system-libs.patch

package info (click to toggle)
transmission 4.1.0~beta2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 39,880 kB
  • sloc: cpp: 146,014; javascript: 5,801; ansic: 4,119; xml: 550; sh: 477; python: 213; makefile: 75
file content (83 lines) | stat: -rw-r--r-- 2,735 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
From: Alexandre Rossi <niol@zincube.net>
Date: Wed, 5 Jun 2024 22:17:16 +0200
Subject: Use system libraries instead embedded ones

Forwarded: https://github.com/transmission/transmission/pull/6900
---
 cmake/FindFastFloat.cmake  | 2 +-
 cmake/FindFmt.cmake        | 2 +-
 cmake/FindRapidJSON.cmake  | 2 +-
 cmake/FindUtfCpp.cmake     | 2 +-
 tests/gtest/CMakeLists.txt | 8 ++++----
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/cmake/FindFastFloat.cmake b/cmake/FindFastFloat.cmake
index a3cea4a..30f87b9 100644
--- a/cmake/FindFastFloat.cmake
+++ b/cmake/FindFastFloat.cmake
@@ -2,4 +2,4 @@ add_library(FastFloat::fast_float INTERFACE IMPORTED)
 
 target_include_directories(FastFloat::fast_float
     INTERFACE
-        ${TR_THIRD_PARTY_SOURCE_DIR}/fast_float/include)
+        /usr/include/fast_float/)
diff --git a/cmake/FindFmt.cmake b/cmake/FindFmt.cmake
index 829f607..dcf91ca 100644
--- a/cmake/FindFmt.cmake
+++ b/cmake/FindFmt.cmake
@@ -2,7 +2,7 @@ add_library(fmt::fmt-header-only INTERFACE IMPORTED)
 
 target_include_directories(fmt::fmt-header-only
     INTERFACE
-        ${TR_THIRD_PARTY_SOURCE_DIR}/fmt/include)
+        /usr/include/fmt)
 
 target_compile_definitions(fmt::fmt-header-only
     INTERFACE
diff --git a/cmake/FindRapidJSON.cmake b/cmake/FindRapidJSON.cmake
index aec9374..059c1a9 100644
--- a/cmake/FindRapidJSON.cmake
+++ b/cmake/FindRapidJSON.cmake
@@ -2,7 +2,7 @@ add_library(RapidJSON INTERFACE IMPORTED)
 
 target_include_directories(RapidJSON
     INTERFACE
-        ${TR_THIRD_PARTY_SOURCE_DIR}/rapidjson/include)
+        /usr/include/rapidjson)
 
 target_compile_definitions(RapidJSON
     INTERFACE
diff --git a/cmake/FindUtfCpp.cmake b/cmake/FindUtfCpp.cmake
index f79085a..1c94813 100644
--- a/cmake/FindUtfCpp.cmake
+++ b/cmake/FindUtfCpp.cmake
@@ -2,4 +2,4 @@ add_library(utf8::cpp INTERFACE IMPORTED)
 
 target_include_directories(utf8::cpp
     INTERFACE
-        ${TR_THIRD_PARTY_SOURCE_DIR}/utfcpp/source)
+        /usr/include/utf8cpp)
diff --git a/tests/gtest/CMakeLists.txt b/tests/gtest/CMakeLists.txt
index 77eef53..6da575b 100644
--- a/tests/gtest/CMakeLists.txt
+++ b/tests/gtest/CMakeLists.txt
@@ -12,8 +12,8 @@ endif()
 
 target_sources(gtestall
     PRIVATE
-        ${GTEST_ROOT_DIR}/src/gtest-all.cc
-        ${GTEST_ROOT_DIR}/src/gtest_main.cc)
+        /usr/src/googletest/googletest/src/gtest-all.cc
+        /usr/src/googletest/googletest/src/gtest_main.cc)
 
 set_property(
     TARGET gtestall
@@ -21,6 +21,6 @@ set_property(
 
 target_include_directories(gtestall SYSTEM
     PRIVATE
-        ${GTEST_ROOT_DIR}
+        /usr/src/googletest/googletest
     PUBLIC
-        ${GTEST_ROOT_DIR}/include)
+        /usr/src/googletest/googletest/include)