summaryrefslogtreecommitdiff
path: root/debian/patches/0005-Force-linking-of-Python-module-with-CGAL.patch
blob: d8ca02555b14ed40a2a1ed339b654f13540d6146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Gard Spreemann <gspreemann@gmail.com>
Date: Mon, 10 Sep 2018 05:20:33 +0200
Subject: Force linking of Python module with CGAL.

---
 cython/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cython/CMakeLists.txt b/cython/CMakeLists.txt
index 219b99e..7b8e38f 100644
--- a/cython/CMakeLists.txt
+++ b/cython/CMakeLists.txt
@@ -143,7 +143,7 @@ if(CYTHON_FOUND)
       set(GUDHI_CYTHON_EXTRA_COMPILE_ARGS "${GUDHI_CYTHON_EXTRA_COMPILE_ARGS}'-DCGAL_HEADER_ONLY', ")
     else(CGAL_HEADER_ONLY)
       add_gudhi_debug_info("CGAL version ${CGAL_VERSION}")
-      add_gudhi_cython_lib("${CGAL_LIBRARY}")
+      add_gudhi_cython_lib("${CGAL_LIBRARIES_DIR}/libCGAL.so")
       set(GUDHI_CYTHON_LIBRARY_DIRS "${GUDHI_CYTHON_LIBRARY_DIRS}'${CGAL_LIBRARIES_DIR}', ")
       # If CGAL is not header only, CGAL library may link with boost system,
       if(CMAKE_BUILD_TYPE MATCHES Debug)