diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindPython.cmake | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/cmake/modules/FindPython.cmake b/cmake/modules/FindPython.cmake index 782c0f51f6..8258f92f0b 100644 --- a/cmake/modules/FindPython.cmake +++ b/cmake/modules/FindPython.cmake @@ -59,13 +59,6 @@ if(PYTHON_VER) endif() find_package(Python3 ${VERSION} ${EXACT_VER} COMPONENTS Development) -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() if(KODI_DEPENDSBUILD) find_library(FFI_LIBRARY ffi REQUIRED) @@ -83,6 +76,14 @@ 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) |