forked from guix-science/guix-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrstudio-server-1.4.1103-soci-searchpath.patch
33 lines (29 loc) · 1.3 KB
/
rstudio-server-1.4.1103-soci-searchpath.patch
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
From d413e0ba6e5b265cad6c787ab8ddf9660a12923e Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <[email protected]>
Date: Wed, 10 Feb 2021 09:44:29 +0100
Subject: [PATCH] Use default library path for soci library
---
src/cpp/CMakeLists.txt | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt
index df5499439c..9128963396 100644
--- a/src/cpp/CMakeLists.txt
+++ b/src/cpp/CMakeLists.txt
@@ -405,13 +405,9 @@ endif()
# find SOCI libraries
if(UNIX)
- set(SOCI_LIBRARY_DIR "${RSTUDIO_TOOLS_SOCI}/build/lib")
- if(NOT APPLE AND RSTUDIO_USE_SYSTEM_SOCI)
- set(SOCI_LIBRARY_DIR "/usr/lib")
- endif()
- find_library(SOCI_CORE_LIB NAMES "libsoci_core.a" "soci_core" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH)
- find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.a" "soci_sqlite3" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH)
- find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.a" "soci_postgresql" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH)
+ find_library(SOCI_CORE_LIB "soci_core")
+ find_library(SOCI_SQLITE_LIB "soci_sqlite3")
+ find_library(SOCI_POSTGRESQL_LIB "soci_postgresql")
find_library(DL_LIB "dl")
find_library(SQLITE_LIB "sqlite3")
get_filename_component(SQLITE_LIB "${SQLITE_LIB}" REALPATH)
--
2.26.2