fail cmake build on shader compilation failure
This commit is contained in:
4
cmake/TryCompileShaders.cmake
Normal file
4
cmake/TryCompileShaders.cmake
Normal 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()
|
||||
Reference in New Issue
Block a user