mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
CMake: Only link in Bochs on x86 platforms
Bochs' disassembler is only for disassembling x86 code. On non-x86 platforms it doesn't really make sense to build and link this in.
This commit is contained in:
@ -16,10 +16,14 @@ PUBLIC
|
||||
cpp-optparse
|
||||
|
||||
PRIVATE
|
||||
bdisasm
|
||||
$<$<BOOL:APPLE>:${IOK_LIBRARY}>
|
||||
)
|
||||
|
||||
if ((DEFINED CMAKE_ANDROID_ARCH_ABI AND CMAKE_ANDROID_ARCH_ABI MATCHES "x86|x86_64") OR
|
||||
(NOT DEFINED CMAKE_ANDROID_ARCH_ABI AND _M_X86))
|
||||
target_link_libraries(uicommon PRIVATE bdisasm)
|
||||
endif()
|
||||
|
||||
if(USE_X11)
|
||||
target_sources(uicommon PRIVATE X11Utils.cpp)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user