fail cmake build on shader compilation failure

This commit is contained in:
ohyzha
2024-07-11 14:33:50 +03:00
parent a6caaeadf9
commit a228dc2e47
3 changed files with 14 additions and 9 deletions

View File

@@ -0,0 +1,4 @@
execute_process(COMMAND bash -c "${ROOT_FOLDER}/Scripts/CompileShaders.sh" RESULT_VARIABLE res_var)
if(NOT "${res_var}" STREQUAL "0")
message(FATAL_ERROR "Failed to recompile shaders")
endif()