3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-04 19:45:43 +00:00

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

View File

@ -24,7 +24,14 @@ message(STATUS "Gathering git info")
# Make shader files includable
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)