summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2022-10-17 22:51:26 -0700
committerGravatar GitHub2022-10-17 22:51:26 -0700
commit8649c46c74aa7d99e8a59a09b79162304c11cbfd (patch)
treef8b79e54f9ae1a41e6a42ed06953c0eaf11e219a /src
parentMerge pull request #9087 from Morph1984/once (diff)
parentCMake: Try add library "LZ4::lz4_shared" if "lz4::lz4" is unavailable (diff)
downloadyuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.tar.gz
yuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.tar.xz
yuzu-8649c46c74aa7d99e8a59a09b79162304c11cbfd.zip
Merge pull request #9054 from Docteh/just_lz4
CMake: Try add_library "lz4" if "lz4::lz4" is unavailable
Diffstat (limited to 'src')
-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()
169create_target_directory_groups(common) 169create_target_directory_groups(common)
170 170
171target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) 171target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
172target_link_libraries(common PRIVATE lz4::lz4) 172if (TARGET lz4::lz4)
173 target_link_libraries(common PRIVATE lz4::lz4)
174else()
175 target_link_libraries(common PRIVATE LZ4::lz4_shared)
176endif()
173if (TARGET zstd::zstd) 177if (TARGET zstd::zstd)
174 target_link_libraries(common PRIVATE zstd::zstd) 178 target_link_libraries(common PRIVATE zstd::zstd)
175else() 179else()