12345678910111213141516171819202122232425262728 |
- From c29c1e762e126fdb46a19fc15bcb465cf1cd6c76 Mon Sep 17 00:00:00 2001
- From: "Yann E. MORIN" <yann.morin.1998@free.fr>
- Date: Sun, 7 May 2023 11:18:00 +0200
- Subject: [PATCH] cmake/modules: fix python detection
- Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
- Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
- Upstream: https://github.com/xbmc/xbmc/pull/23230
- ---
- cmake/modules/FindPython.cmake | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/cmake/modules/FindPython.cmake b/cmake/modules/FindPython.cmake
- index 782c0f51f6..a013cccf80 100644
- --- a/cmake/modules/FindPython.cmake
- +++ b/cmake/modules/FindPython.cmake
- @@ -60,7 +60,7 @@ endif()
-
- find_package(Python3 ${VERSION} ${EXACT_VER} COMPONENTS Development)
- if(CORE_SYSTEM_NAME STREQUAL linux)
- - if(HOST_CAN_EXECUTE_TARGET)
- + if(HOST_CAN_EXECUTE_TARGET OR DEFINED PYTHON_EXECUTABLE)
- find_package(Python3 ${VERSION} ${EXACT_VER} COMPONENTS Interpreter)
- else()
- find_package(Python3 COMPONENTS Interpreter)
- --
- 2.25.1
|