From 009f1f383a6e244bc923b3d07156bfa6094b8382 Mon Sep 17 00:00:00 2001 From: Arseny Maslennikov Date: Tue, 17 Jan 2023 19:31:31 +0300 Subject: [PATCH] patch: replace submodule to find python --- cmake/qt-utils.cmake | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cmake/qt-utils.cmake b/cmake/qt-utils.cmake index fc7327540..7242a8891 100644 --- a/cmake/qt-utils.cmake +++ b/cmake/qt-utils.cmake @@ -3,7 +3,7 @@ # that can be found in the LICENSE file at the root of the # Mumble source tree or at . -include(FindPythonInterpreter) +#include(FindPythonInterpreter) function(include_qt_plugin TARGET SCOPE PLUGIN) set(PATH "${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_plugin_import.cpp") @@ -106,12 +106,8 @@ function(bundle_qt_translations TARGET) "C:/Python39-x64" # Path on the AppVeyor CI server ) - find_python_interpreter( - VERSION 3 - INTERPRETER_OUT_VAR PYTHON_INTERPRETER - HINTS ${PYTHON_HINTS} - REQUIRED - ) + find_package(Python3 COMPONENTS Interpreter QUIET) + set(PYTHON_INTERPRETER "${Python3_EXECUTABLE}") set(GENERATED_QRC_FILE "${CMAKE_CURRENT_BINARY_DIR}/mumble_qt_translations.qrc") -- 2.33.5