diff options
| author | bunnei <bunneidev@gmail.com> | 2020-10-07 17:57:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-07 17:57:14 -0700 |
| commit | f268127175da6ab26d21c19fdeb59e1b7edeaee5 (patch) | |
| tree | a50a08c9d73e335c62b7c8772b4ca0dca4e67db8 /src | |
| parent | 44641fe2a91d5c35d5c101e6e84185e927630336 (diff) | |
| parent | bcd77d4b7b032cf5f2628d113bb36d9fd688739e (diff) | |
Merge pull request #4731 from lat9nq/mingw-zstd-fix
common: Use system zstd on Linux
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 5d54516eb8..0fb5d97085 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -192,4 +192,9 @@ create_target_directory_groups(common) find_package(Boost 1.71 COMPONENTS context headers REQUIRED) target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile) -target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd xbyak) +target_link_libraries(common PRIVATE lz4::lz4 xbyak) +if (MSVC) + target_link_libraries(common PRIVATE zstd::zstd) +else() + target_link_libraries(common PRIVATE zstd) +endif() |
