Browse Source
Merge pull request #8904 from liushuyu/fix-xbyak-linkage
common: do not link to xbyak on non-amd64 architectures
pull/15/merge
Mai
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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() |
|
|
|
|