build: use Python3 rather than PythonInterp modules

This commit is contained in:
Danny Robson 2024-02-21 14:57:08 +10:00
parent e13af91820
commit c5d2333cfc
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ project(cruft-vulkan CXX)
###############################################################################
find_package (PythonInterp 3 REQUIRED)
find_package (Python3 REQUIRED COMPONENTS Interpreter)
find_package (glfw3 REQUIRED)
find_program (GLSLANG glslangValidator REQUIRED)
@ -36,7 +36,7 @@ OUTPUT
COMMENT
"[spec.py] vk.hpp"
COMMAND
"${PYTHON_EXECUTABLE}"
"${Python3_EXECUTABLE}"
"${CMAKE_CURRENT_SOURCE_DIR}/tools/spec.py"
"--src" "${CMAKE_CURRENT_SOURCE_DIR}/specs/xml/vk.xml"
"--dst" "${GENERATED_PREFIX}/vk.hpp"