diff options
author | Mai <mathew1800@gmail.com> | 2022-09-15 09:44:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 09:44:57 -0400 |
commit | 463cc9559f68a43513b7984360028d57e3aab026 (patch) | |
tree | 2ce2368e7c4ff7a071bc6df1124921ada163b776 /src | |
parent | eeb0ec67c3fa354dc3c93ccd1c06c265401051ba (diff) | |
parent | 7fda6de5cbe0447c5960f4ab8f7820de09d9269d (diff) |
Merge pull request #8904 from liushuyu/fix-xbyak-linkage
common: do not link to xbyak on non-amd64 architectures
Diffstat (limited to 'src')
-rw-r--r-- | src/common/CMakeLists.txt | 3 |
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() |