File: 0002-Allow-system-sqlite.patch

package info (click to toggle)
rocthrust 6.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,588 kB
  • sloc: cpp: 66,309; ansic: 34,184; python: 1,519; sh: 331; xml: 212; makefile: 115
file content (30 lines) | stat: -rw-r--r-- 889 bytes parent folder | download
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
From: Christian Bayle <bayle@debian.org>
Date: Fri, 24 Oct 2025 19:11:33 +0200
Subject: Allow-system-sqlite

Forwarded: not-needed
Applied-Upstream: 7.1.0
---
 cmake/Dependencies.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index cbc0b48..6817e3e 100644
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -90,6 +90,7 @@ if(BUILD_TEST OR BUILD_HIPSTDPAR_TEST)
   # for cache serialization.  We also want to use a static SQLite,
   # and distro static libraries aren't typically built
   # position-independent.
+  if(NOT USE_SYSTEM_SQLITE)
   include( FetchContent )
 
   if(DEFINED ENV{SQLITE_3_43_2_SRC_URL})
@@ -130,6 +131,7 @@ if(BUILD_TEST OR BUILD_HIPSTDPAR_TEST)
       PRIVATE -DSQLITE_OMIT_LOAD_EXTENSION
       PRIVATE -DSQLITE_OMIT_SHARED_CACHE
   )
+  endif()
 endif()
 
 # Benchmark dependencies