summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-10-07 17:57:14 -0700
committerGitHub <noreply@github.com>2020-10-07 17:57:14 -0700
commit3446eb79b58c18426fc2f7f6bae0d5a81599fac3 (patch)
treea50a08c9d73e335c62b7c8772b4ca0dca4e67db8
parent92adb69fa7fa21d2f5e078e9473c0ea08e009a71 (diff)
parent2cbce77b925c4320d90d5845563928a838c3372c (diff)
Merge pull request #4731 from lat9nq/mingw-zstd-fix
common: Use system zstd on Linux
-rw-r--r--src/common/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 5d54516eb..0fb5d9708 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()