chore: use Ninja for Win cpn and improve Python support (#6455)

This commit is contained in:
Raphael Coeffic
2025-07-27 11:50:22 +10:00
committed by GitHub
parent 23e3730289
commit 89f5d006c9
7 changed files with 312 additions and 126 deletions
+8 -4
View File
@@ -50,10 +50,14 @@ include(Macros)
git_id(GIT_STR)
# Python check
find_package(PythonInterp 3 REQUIRED)
if(PYTHONINTERP_FOUND)
message(STATUS "Python found, version: ${PYTHON_VERSION_STRING}")
get_filename_component(PYTHON_DIRECTORY ${PYTHON_EXECUTABLE} DIRECTORY)
set(Python3_FIND_VIRTUALENV FIRST)
set(Python3_FIND_STRATEGY LOCATION)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
if(Python3_Interpreter_FOUND)
message(STATUS "Python found, version: ${Python3_VERSION}")
cmake_path(NATIVE_PATH Python3_EXECUTABLE PYTHON_EXECUTABLE)
else()
message(WARNING "Python not found! Most firmware and simu flavors not buildable.")
set(LUA NO)