Update CMakeLists.txt

This commit is contained in:
marauder2k7 2025-10-28 16:33:33 +00:00
parent cbd3edf872
commit d4cc9a8324

View file

@ -298,8 +298,9 @@ mark_as_advanced(PULSEAUDIO_LIBRARY)
find_package(Python3 QUIET) find_package(Python3 QUIET)
if(NOT Python3_FOUND) if(NOT Python3_FOUND)
if(WIN32)
message(STATUS "Python3 not found — downloading embedded Python...") message(STATUS "Python3 not found — downloading embedded Python...")
set(program_version 3.12.7)
# Detect architecture # Detect architecture
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm") if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
if(TORQUE_CPU_ARM64) if(TORQUE_CPU_ARM64)
@ -363,6 +364,9 @@ if(NOT Python3_FOUND)
set(Python_EXECUTABLE "${embedded_python_exe}" CACHE FILEPATH "Path to embedded Python" FORCE) set(Python_EXECUTABLE "${embedded_python_exe}" CACHE FILEPATH "Path to embedded Python" FORCE)
message(STATUS "Using embedded Python: ${Python_EXECUTABLE}") message(STATUS "Using embedded Python: ${Python_EXECUTABLE}")
endif() endif()
else()
message(FATAL_ERROR "Cannot find python3 please install it")
endif(WIN32)
endif() endif()
advanced_option(BUILD_PROGRAMS "" OFF) advanced_option(BUILD_PROGRAMS "" OFF)