summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar Mai2022-09-15 09:44:57 -0400
committerGravatar GitHub2022-09-15 09:44:57 -0400
commit463cc9559f68a43513b7984360028d57e3aab026 (patch)
tree2ce2368e7c4ff7a071bc6df1124921ada163b776 /src/common
parentMerge pull request #8900 from lioncash/cast-qual (diff)
parentcommon: do not link to xbyak on non-amd64 architectures (diff)
downloadyuzu-463cc9559f68a43513b7984360028d57e3aab026.tar.gz
yuzu-463cc9559f68a43513b7984360028d57e3aab026.tar.xz
yuzu-463cc9559f68a43513b7984360028d57e3aab026.zip
Merge pull request #8904 from liushuyu/fix-xbyak-linkage
common: do not link to xbyak on non-amd64 architectures
Diffstat (limited to 'src/common')
-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)
166 x64/xbyak_abi.h 166 x64/xbyak_abi.h
167 x64/xbyak_util.h 167 x64/xbyak_util.h
168 ) 168 )
169 target_link_libraries(common PRIVATE xbyak)
169endif() 170endif()
170 171
171if (MSVC) 172if (MSVC)
@@ -189,7 +190,7 @@ endif()
189create_target_directory_groups(common) 190create_target_directory_groups(common)
190 191
191target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) 192target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
192target_link_libraries(common PRIVATE lz4::lz4 xbyak) 193target_link_libraries(common PRIVATE lz4::lz4)
193if (TARGET zstd::zstd) 194if (TARGET zstd::zstd)
194 target_link_libraries(common PRIVATE zstd::zstd) 195 target_link_libraries(common PRIVATE zstd::zstd)
195else() 196else()