summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-10-18 07:51:26 +0200
committerGitHub <noreply@github.com>2022-10-18 07:51:26 +0200
commit8649c46c74aa7d99e8a59a09b79162304c11cbfd (patch)
treef8b79e54f9ae1a41e6a42ed06953c0eaf11e219a /src/common
parentMerge pull request #9087 from Morph1984/once (diff)
parentCMake: Try add library "LZ4::lz4_shared" if "lz4::lz4" is unavailable (diff)
downloadyuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.tar
yuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.tar.gz
yuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.tar.bz2
yuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.tar.lz
yuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.tar.xz
yuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.tar.zst
yuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index a02696873..46cf75fde 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -169,7 +169,11 @@ endif()
create_target_directory_groups(common)
target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
-target_link_libraries(common PRIVATE lz4::lz4)
+if (TARGET lz4::lz4)
+ target_link_libraries(common PRIVATE lz4::lz4)
+else()
+ target_link_libraries(common PRIVATE LZ4::lz4_shared)
+endif()
if (TARGET zstd::zstd)
target_link_libraries(common PRIVATE zstd::zstd)
else()