summarylogtreecommitdiffstats
path: root/0002-cmake-python-link.patch
blob: e55e2bfa48321bca34eaf6e57a974ba61d959569 (plain)
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
From d5ad3518afd82c68af9a1e8364668c41c40341d1 Mon Sep 17 00:00:00 2001
From: Abdelhak Bougouffa <abougouffa@fedoraproject.org>
Date: Tue, 19 Nov 2019 15:14:15 +0100
Subject: [PATCH] Add PythonLibs to link libraries in CMake, Fix #258

---
 DSView/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/DSView/CMakeLists.txt b/DSView/CMakeLists.txt
index 1a844a4..16ef406 100755
--- a/DSView/CMakeLists.txt
+++ b/DSView/CMakeLists.txt
@@ -92,6 +92,7 @@ endif()
 
 find_package(Threads)
 
+find_package(PythonLibs 3 EXACT)
 find_package(Boost 1.42 COMPONENTS filesystem system thread REQUIRED)
 find_package(libusb-1.0 REQUIRED)
 find_package(libzip REQUIRED)
@@ -390,6 +391,7 @@ else()
 	list(APPEND DSVIEW_LINK_LIBS ${PKGDEPS_LIBRARIES})
 endif()
 
+list(APPEND DSVIEW_LINK_LIBS ${PYTHON_LIBRARIES})
 
 add_executable(${PROJECT_NAME}
 	${DSView_SOURCES}