diff options
author | wsnipex <wsnipex@a1.net> | 2023-03-16 13:15:15 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2023-03-18 17:30:48 +0100 |
commit | 026ff6467cb5427e8ca954a221c4d7c9a64d5862 (patch) | |
tree | 6c1737438c193c5bd36c31d18c7cb7a0b37dfc2a /cmake | |
parent | e421b51b15b9cf8d0387d2b8335fc584036025a5 (diff) |
cmake: fix FindPython for webos
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) |