From 583e5581c019a66248bcf0206459e303fee10edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 17 Nov 2019 00:01:55 +0100 Subject: [PATCH] Find python path correctly --- plugins/python-renderer/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/python-renderer/CMakeLists.txt b/plugins/python-renderer/CMakeLists.txt index 473f658..cd1a639 100644 --- a/plugins/python-renderer/CMakeLists.txt +++ b/plugins/python-renderer/CMakeLists.txt @@ -1,12 +1,15 @@ project(pythonrenderer) -cmake_minimum_required(VERSION 2.8) -find_package(PkgConfig REQUIRED) -pkg_search_module(PYTHON REQUIRED python3) +cmake_minimum_required(VERSION 2.8.8) +find_package(PythonLibs) aux_source_directory(src SOURCES) include_directories(${PYTHON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/include) -link_libraries(${PYTHON_LDFLAGS} version) +link_libraries(${PYTHON_LIBRARIES} version) + +message("Python version found: ${PYTHONLIBS_VERSION_STRING}") +message(${PYTHON_LIBRARIES}) +message(${PYTHON_INCLUDE_DIRS}) add_library(${PROJECT_NAME} SHARED EXCLUDE_FROM_ALL ${SOURCES}) add_dependencies(${PROJECT_NAME} version)