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:
Lioncash
2018-06-22 18:52:34 -04:00
parent 68731995b5
commit 7f8cdbb2a4
4 changed files with 28 additions and 18 deletions

View File

@ -534,7 +534,9 @@ endif()
# - place the CMakeLists.txt in the first-level subdirectory, e.g.
# Externals/zlib/CMakeLists.txt (that is: NOT in some Src/ subdirectory)
#
add_subdirectory(Externals/Bochs_disasm)
if (_M_X86)
add_subdirectory(Externals/Bochs_disasm)
endif()
add_subdirectory(Externals/cpp-optparse)
add_subdirectory(Externals/glslang)