From d5ad3518afd82c68af9a1e8364668c41c40341d1 Mon Sep 17 00:00:00 2001 From: Abdelhak Bougouffa 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}