cmake: fail if scripts/generateShaderIncludes.sh fails (#12588)

This commit is contained in:
Hasan Arthur Altuntaş 2025-12-08 16:49:23 +03:00 committed by GitHub
parent a5b7c91329
commit 834f019bab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,14 @@ message(STATUS "Gathering git info")
# Make shader files includable # Make shader files includable
execute_process(COMMAND ./scripts/generateShaderIncludes.sh execute_process(COMMAND ./scripts/generateShaderIncludes.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
RESULT_VARIABLE HYPR_SHADER_GEN_RESULT)
if(NOT HYPR_SHADER_GEN_RESULT EQUAL 0)
message(
FATAL_ERROR
"Failed to generate shader includes (scripts/generateShaderIncludes.sh), exit code: ${HYPR_SHADER_GEN_RESULT}"
)
endif()
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)