From c5d2333cfcd4a3c7b153793bd0027be2277c6ea5 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 21 Feb 2024 14:57:08 +1000 Subject: [PATCH] build: use Python3 rather than PythonInterp modules --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"