diff options
Diffstat (limited to 'src/common')
| -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 64bb753e6..d574e4b79 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -185,8 +185,9 @@ create_target_directory_groups(common) | |||
| 185 | 185 | ||
| 186 | target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) | 186 | target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) |
| 187 | target_link_libraries(common PRIVATE lz4::lz4 xbyak) | 187 | target_link_libraries(common PRIVATE lz4::lz4 xbyak) |
| 188 | if (MSVC) | 188 | if (TARGET zstd::zstd) |
| 189 | target_link_libraries(common PRIVATE zstd::zstd) | 189 | target_link_libraries(common PRIVATE zstd::zstd) |
| 190 | else() | 190 | else() |
| 191 | target_link_libraries(common PRIVATE zstd) | 191 | target_link_libraries(common PRIVATE |
| 192 | $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>) | ||
| 192 | endif() | 193 | endif() |