aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-10-04 20:12:27 +1000
committerfuzzard <fuzzard@kodi.tv>2023-10-24 14:22:21 +1000
commit01fd7ef5956c83c42b1f7bcc1d33d8581fb16b17 (patch)
tree4fe084ac425e08425a4fa1e9a5aaad17d727ca26 /cmake/scripts
parent5423d9b0e3c1527136de65c3ba607aa7a5d9d09d (diff)
[cmake] Create FindPythonInterpreter for host information
This splits out host find information from the regular target find module. This allows us to not mix and check for host executable status, and only explicitly search for the host interpreter when required (eg ENABLE_EVENTCLIENTS=ON)
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/linux/Install.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/scripts/linux/Install.cmake b/cmake/scripts/linux/Install.cmake
index addb040894..fd73bea9ed 100644
--- a/cmake/scripts/linux/Install.cmake
+++ b/cmake/scripts/linux/Install.cmake
@@ -194,6 +194,7 @@ install(FILES ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/scripts/${APP_NAME}Config.cm
COMPONENT kodi-addon-dev)
if(ENABLE_EVENTCLIENTS)
+ find_package(PythonInterpreter REQUIRED)
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix=''))"
OUTPUT_VARIABLE PYTHON_LIB_PATH OUTPUT_STRIP_TRAILING_WHITESPACE)
# Install kodi-eventclients-common BT python files