diff options
Diffstat (limited to 'cmake/modules/FindPython.cmake')
-rw-r--r-- | cmake/modules/FindPython.cmake | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cmake/modules/FindPython.cmake b/cmake/modules/FindPython.cmake index 8258f92f0b..56d320e1a9 100644 --- a/cmake/modules/FindPython.cmake +++ b/cmake/modules/FindPython.cmake @@ -20,7 +20,6 @@ # # PYTHON_FOUND - system has PYTHON # PYTHON_VERSION - Python version number (Major.Minor) -# PYTHON_EXECUTABLE - Python interpreter binary # PYTHON_INCLUDE_DIRS - the python include directory # PYTHON_LIBRARIES - The python libraries # PYTHON_LDFLAGS - Python provided link options @@ -76,23 +75,12 @@ if(KODI_DEPENDSBUILD) endif() list(APPEND Python3_LIBRARIES ${LZMA_LIBRARY} ${FFI_LIBRARY} ${EXPAT_LIBRARY} ${INTL_LIBRARY} ${GMP_LIBRARY} ${PYTHON_DEP_LIBRARIES}) -else() - if(CORE_SYSTEM_NAME STREQUAL linux) - if(HOST_CAN_EXECUTE_TARGET) - find_package(Python3 ${VERSION} ${EXACT_VER} COMPONENTS Interpreter) - else() - find_package(Python3 COMPONENTS Interpreter) - endif() - endif() endif() if(Python3_FOUND) list(APPEND PYTHON_DEFINITIONS -DHAS_PYTHON=1) # These are all set for easy integration with the rest of our build system set(PYTHON_FOUND ${Python3_FOUND}) - if(NOT PYTHON_EXECUTABLE) - set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE} CACHE FILEPATH "Python interpreter" FORCE) - endif() set(PYTHON_INCLUDE_DIRS ${Python3_INCLUDE_DIRS}) set(PYTHON_LIBRARIES ${Python3_LIBRARIES}) set(PYTHON_VERSION "${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}" CACHE INTERNAL "" FORCE) |