diff --git a/PlugIns/GLSLang/CMakeLists.txt b/PlugIns/GLSLang/CMakeLists.txt index bfe03d9b8ac..17844605ccd 100644 --- a/PlugIns/GLSLang/CMakeLists.txt +++ b/PlugIns/GLSLang/CMakeLists.txt @@ -19,7 +19,11 @@ elseif(DEFINED ENV{VULKAN_SDK}) target_link_directories(Plugin_GLSLangProgramManager PUBLIC $ENV{VULKAN_SDK}/lib) target_link_libraries(Plugin_GLSLangProgramManager PUBLIC OgreMain shaderc_combined) else() - set(GLSLANG_LIBS glslang OSDependent SPIRV SPIRV-Tools-opt SPIRV-Tools) + set(GLSLANG_LIBS glslang SPIRV SPIRV-Tools-opt SPIRV-Tools) + find_library(GLSLANG_OSDependent OSDependent) + if(GLSLANG_OSDependent) + set(GLSLANG_LIBS ${GLSLANG_LIBS} ${GLSLANG_OSDependent}) + endif() find_library(GLSLANG_HLSL HLSL) if(GLSLANG_HLSL) set(GLSLANG_LIBS ${GLSLANG_LIBS} ${GLSLANG_HLSL})