Fixed non-external SPIRV-Tools linkage

This commit is contained in:
darktux 2024-04-11 18:33:13 +02:00
parent fac1dbc7e6
commit ca068f6df2

View file

@ -245,7 +245,7 @@ add_library(shader_recompiler STATIC
if (YUZU_USE_EXTERNAL_VULKAN_SPIRV_TOOLS)
set(SPIRV_TOOLS_LIBRARY SPIRV-Tools-opt)
else()
set(SPIRV_TOOLS_LIBRARY SPIRV-Tools SPIRV-Tools-opt)
set(SPIRV_TOOLS_LIBRARY SPIRV-Tools-opt SPIRV-Tools SPIRV-Tools-link)
endif()
target_link_libraries(shader_recompiler PUBLIC common fmt::fmt sirit ${SPIRV_TOOLS_LIBRARY})