diff options
| author | Hasan Arthur Altuntaş <111705644+Rtur2003@users.noreply.github.com> | 2025-12-08 16:49:23 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-08 13:49:23 +0000 |
| commit | 834f019bab5df85b912a7aab7054fc8306f7c52a (patch) | |
| tree | 8a71d48d86e17d9264a452901894a8a3f596a64b /CMakeLists.txt | |
| parent | a5b7c91329313503e8864761f24ef43fb630f35c (diff) | |
cmake: fail if scripts/generateShaderIncludes.sh fails (#12588)
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 805b63c3..07a33cb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |
