mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Update CMakeLists.txt
This commit is contained in:
parent
cbd3edf872
commit
d4cc9a8324
1 changed files with 66 additions and 62 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue