build: use Python3 rather than PythonInterp modules
This commit is contained in:
parent
e13af91820
commit
c5d2333cfc
@ -4,7 +4,7 @@ project(cruft-vulkan CXX)
|
|||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
find_package (PythonInterp 3 REQUIRED)
|
find_package (Python3 REQUIRED COMPONENTS Interpreter)
|
||||||
find_package (glfw3 REQUIRED)
|
find_package (glfw3 REQUIRED)
|
||||||
|
|
||||||
find_program (GLSLANG glslangValidator REQUIRED)
|
find_program (GLSLANG glslangValidator REQUIRED)
|
||||||
@ -36,7 +36,7 @@ OUTPUT
|
|||||||
COMMENT
|
COMMENT
|
||||||
"[spec.py] vk.hpp"
|
"[spec.py] vk.hpp"
|
||||||
COMMAND
|
COMMAND
|
||||||
"${PYTHON_EXECUTABLE}"
|
"${Python3_EXECUTABLE}"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/tools/spec.py"
|
"${CMAKE_CURRENT_SOURCE_DIR}/tools/spec.py"
|
||||||
"--src" "${CMAKE_CURRENT_SOURCE_DIR}/specs/xml/vk.xml"
|
"--src" "${CMAKE_CURRENT_SOURCE_DIR}/specs/xml/vk.xml"
|
||||||
"--dst" "${GENERATED_PREFIX}/vk.hpp"
|
"--dst" "${GENERATED_PREFIX}/vk.hpp"
|
||||||
|
Loading…
Reference in New Issue
Block a user