Cannot use Android-built glslang on desktop

This commit is contained in:
Josip Miskovic 2022-10-31 13:32:54 +01:00 committed by Bjorn
parent 67627f4aab
commit 92975d34fc
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ if(LOVR_ENABLE_GRAPHICS)
add_dependencies(lovr compile_shaders)
function(compile_shaders)
if(LOVR_USE_GLSLANG AND ENABLE_GLSLANG_BINARIES)
if(LOVR_USE_GLSLANG AND ENABLE_GLSLANG_BINARIES AND NOT ANDROID)
set(GLSLANG_VALIDATOR $<TARGET_FILE:glslangValidator>)
elseif(Vulkan_GLSLANG_VALIDATOR_EXECUTABLE)
set(GLSLANG_VALIDATOR "${Vulkan_GLSLANG_VALIDATOR_EXECUTABLE}")