mirror of https://github.com/AxioDL/metaforce.git
CMake: Use FindPython3 for TCastTo generation
This commit is contained in:
parent
26fd0e2b9f
commit
9c5dda1c7d
|
@ -28,8 +28,9 @@ else ()
|
|||
list(APPEND PLAT_SRCS CMemoryCardSysNix.cpp)
|
||||
endif ()
|
||||
|
||||
find_package(Python3 COMPONENTS Interpreter REQUIRED)
|
||||
add_custom_command(OUTPUT TCastTo.hpp TCastTo.cpp DEPENDS MkCastTo.py
|
||||
COMMAND python ARGS ${CMAKE_CURRENT_SOURCE_DIR}/MkCastTo.py
|
||||
COMMAND ${Python3_EXECUTABLE} ARGS ${CMAKE_CURRENT_SOURCE_DIR}/MkCastTo.py
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "Generating cast functions")
|
||||
|
||||
|
|
Loading…
Reference in New Issue