summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-07-23 02:54:47 +0200
committerGitHub <noreply@github.com>2022-07-23 02:54:47 +0200
commit58081a3664e3c069cd4efe5d96502c2fcc831535 (patch)
tree06ba40b5701eff84160b6a85e8075b7b66b3a08f /src/common
parentMerge pull request #8598 from Link4565/recv-dontwait (diff)
parentgitmodules: Remove 'externals' from names of submodules (diff)
downloadyuzu-58081a3664e3c069cd4efe5d96502c2fcc831535.tar
yuzu-58081a3664e3c069cd4efe5d96502c2fcc831535.tar.gz
yuzu-58081a3664e3c069cd4efe5d96502c2fcc831535.tar.bz2
yuzu-58081a3664e3c069cd4efe5d96502c2fcc831535.tar.lz
yuzu-58081a3664e3c069cd4efe5d96502c2fcc831535.tar.xz
yuzu-58081a3664e3c069cd4efe5d96502c2fcc831535.tar.zst
yuzu-58081a3664e3c069cd4efe5d96502c2fcc831535.zip
Diffstat (limited to '')
-rw-r--r--src/common/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 73bf626d4..566695fde 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -182,8 +182,9 @@ create_target_directory_groups(common)
target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
target_link_libraries(common PRIVATE lz4::lz4 xbyak)
-if (MSVC)
+if (TARGET zstd::zstd)
target_link_libraries(common PRIVATE zstd::zstd)
else()
- target_link_libraries(common PRIVATE zstd)
+ target_link_libraries(common PRIVATE
+ $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
endif()