diff options
author | lat9nq <lat9nq@gmail.com> | 2022-07-22 06:51:01 +0200 |
---|---|---|
committer | lat9nq <lat9nq@gmail.com> | 2022-07-23 02:54:00 +0200 |
commit | 4b93ea59dbf15ba82bf711c9713ee7dee7784217 (patch) | |
tree | 044de86e6f3427cd816bde72f1220a17b03b2960 /src | |
parent | Merge pull request #8598 from Link4565/recv-dontwait (diff) | |
download | yuzu-4b93ea59dbf15ba82bf711c9713ee7dee7784217.tar yuzu-4b93ea59dbf15ba82bf711c9713ee7dee7784217.tar.gz yuzu-4b93ea59dbf15ba82bf711c9713ee7dee7784217.tar.bz2 yuzu-4b93ea59dbf15ba82bf711c9713ee7dee7784217.tar.lz yuzu-4b93ea59dbf15ba82bf711c9713ee7dee7784217.tar.xz yuzu-4b93ea59dbf15ba82bf711c9713ee7dee7784217.tar.zst yuzu-4b93ea59dbf15ba82bf711c9713ee7dee7784217.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/CMakeLists.txt | 5 |
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() |