summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-10-17 22:51:26 -0700
committerGitHub <noreply@github.com>2022-10-17 22:51:26 -0700
commit8649c46c74aa7d99e8a59a09b79162304c11cbfd (patch)
treef8b79e54f9ae1a41e6a42ed06953c0eaf11e219a
parent1deb997eba8bd40c6af03bcfddd388e916d1331f (diff)
parent40af1111c27968b5298a6ecd07b319422fed665d (diff)
Merge pull request #9054 from Docteh/just_lz4
CMake: Try add_library "lz4" if "lz4::lz4" is unavailable
-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()