Skip to content

Commit

Permalink
🔧 Let cmake find the python3 executable
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Oct 1, 2023
1 parent 0dd10ef commit 145326f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmake/init.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ if (UNIX)
# This will need to be looked at closely before Linux can have a static build.
set(BUILD_SHARED_LIBS ON)
endif ()

find_package(Python3 REQUIRED)
2 changes: 1 addition & 1 deletion cmake/macros/AutoScribeShader.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ macro(AUTOSCRIBE_SHADER_LIBS)
add_custom_command(
OUTPUT ${SCRIBED_SHADERS} ${SPIRV_SHADERS} ${REFLECTED_SHADERS}
COMMENT "Generating/updating shaders"
COMMAND python ${CMAKE_SOURCE_DIR}/tools/shadergen.py
COMMAND ${Python3_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/shadergen.py
--commands ${AUTOSCRIBE_SHADERGEN_COMMANDS_FILE}
--glslang "${GLSLANG_DIR}/glslangValidator"
--scribe "${SCRIBE_DIR}/scribe"
Expand Down

0 comments on commit 145326f

Please sign in to comment.