mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 07:30:05 +01:00
cmake: fail if scripts/generateShaderIncludes.sh fails (#12588)
This commit is contained in:
parent
a5b7c91329
commit
834f019bab
1 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue