build: Fix linker failure with glslang 15.0.0 (#1436)

This commit is contained in:
Jeremy Kescher 2024-12-02 01:01:22 +01:00 committed by GitHub
parent 0735237686
commit 80a6057512
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -532,6 +532,12 @@ set_property(TARGET CemuCafe PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CON
target_include_directories(CemuCafe PUBLIC "../")
if (glslang_VERSION VERSION_LESS "15.0.0")
set(glslang_target "glslang::SPIRV")
else()
set(glslang_target "glslang")
endif()
target_link_libraries(CemuCafe PRIVATE
CemuAsm
CemuAudio
@ -547,7 +553,7 @@ target_link_libraries(CemuCafe PRIVATE
Boost::nowide
CURL::libcurl
fmt::fmt
glslang::SPIRV
${glslang_target}
ih264d
OpenSSL::Crypto
OpenSSL::SSL