Add python linker patch
https://github.com/DreamSourceLab/DSView/issues/258
This commit is contained in:
parent
f8bb78641a
commit
39dd440d45
3 changed files with 36 additions and 1 deletions
29
0002-cmake-python-link.patch
Normal file
29
0002-cmake-python-link.patch
Normal file
|
@ -0,0 +1,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}
|
Loading…
Add table
Add a link
Reference in a new issue