summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliushuyu <liushuyu011@gmail.com>2022-09-12 23:01:44 -0600
committerliushuyu <liushuyu011@gmail.com>2022-09-13 17:19:37 -0600
commit7fda6de5cbe0447c5960f4ab8f7820de09d9269d (patch)
tree761d10e1522ea5a8859dff6417da3bf2b250651e
parent1be456db83393859001b19969b4b359da43d9327 (diff)
common: do not link to xbyak on non-amd64 architectures
-rw-r--r--src/common/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 635fb85c8..b1e0ba6cc 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -166,6 +166,7 @@ if(ARCHITECTURE_x86_64)
x64/xbyak_abi.h
x64/xbyak_util.h
)
+ target_link_libraries(common PRIVATE xbyak)
endif()
if (MSVC)
@@ -189,7 +190,7 @@ 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 xbyak)
+target_link_libraries(common PRIVATE lz4::lz4)
if (TARGET zstd::zstd)
target_link_libraries(common PRIVATE zstd::zstd)
else()