summaryrefslogtreecommitdiff
path: root/debian/patches/0008-Force-linking-of-Python-module-with-CGAL.patch
blob: 2b3a91ba0304c1beed6c87e3f81d1e196901a1b4 (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: Thu, 24 May 2018 11:24:43 +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 ec3cb8f..87b2846 100644
--- a/cython/CMakeLists.txt
+++ b/cython/CMakeLists.txt
@@ -103,7 +103,7 @@ if(CYTHON_FOUND)
     if(CGAL_HEADER_ONLY)
       set(GUDHI_CYTHON_EXTRA_COMPILE_ARGS "${GUDHI_CYTHON_EXTRA_COMPILE_ARGS}'-DCGAL_HEADER_ONLY', ")
     else(CGAL_HEADER_ONLY)
-      add_gudhi_cython_lib(${CGAL_LIBRARIES})
+      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,
       add_gudhi_cython_lib(${Boost_SYSTEM_LIBRARY})