diff --git a/CMakeLists.txt b/CMakeLists.txt index f732649..9c7017b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"