diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 148884c..ba88864 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -205,10 +205,10 @@ endif ( BUILD_KSIM ) if ( BUILD_SUPERKARAMBA ) check_include_file( "sys/types.h" HAVE_SYS_TYPES_H ) - find_package( PythonLibs ) - if( NOT PYTHONLIBS_FOUND ) - tde_message_fatal( "python is required, but was not found on your system" ) - endif( NOT PYTHONLIBS_FOUND ) + find_package (Python3 COMPONENTS Development) + if( NOT Python3_Development_FOUND ) + tde_message_fatal( "Python3 is required, but was not found on your system" ) + endif() if( WITH_TDENEWSTUFF ) set( HAVE_TDENEWSTUFF 1 ) diff --git a/superkaramba/src/CMakeLists.txt b/superkaramba/src/CMakeLists.txt index 211ee0c..be73cc2 100644 --- a/superkaramba/src/CMakeLists.txt +++ b/superkaramba/src/CMakeLists.txt @@ -13,7 +13,7 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} - ${PYTHON_INCLUDE_DIRS} + ${Python3_INCLUDE_DIRS} ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) @@ -54,7 +54,7 @@ tde_add_executable( superkaramba AUTOMOC superkarambasettings.kcfgc themelocale.cpp input.cpp sklineedit.cpp input_python.cpp svcgrp_python.cpp - LINK tdeio-shared ${PYTHON_LIBRARIES} + LINK tdeio-shared ${Python3_LIBRARIES} ${TDENEWSTUFF_LIBRARIES} ${LIBKVM_LIBRARIES} DESTINATION ${BIN_INSTALL_DIR}