Merge pull request #6459 from lat9nq/ubuntu-fixes

cmake: Improve Linux dependency checking for externals
This commit is contained in:
Ameer J 2021-06-30 21:47:57 -04:00 committed by GitHub
commit bab400daaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 99 additions and 6 deletions

View file

@ -18,7 +18,10 @@ set(SHADER_FILES
vulkan_uint8.comp
)
find_program(GLSLANGVALIDATOR "glslangValidator" REQUIRED)
find_program(GLSLANGVALIDATOR "glslangValidator")
if ("${GLSLANGVALIDATOR}" STREQUAL "GLSLANGVALIDATOR-NOTFOUND")
message(FATAL_ERROR "Required program `glslangValidator` not found.")
endif()
set(GLSL_FLAGS "")
set(QUIET_FLAG "--quiet")