externals: allow users to use system xbyak (#7068)
This commit is contained in:
parent
40ba5226c6
commit
3d55270de6
2 changed files with 8 additions and 1 deletions
8
externals/CMakeLists.txt
vendored
8
externals/CMakeLists.txt
vendored
|
@ -80,7 +80,13 @@ endif()
|
|||
|
||||
# Xbyak
|
||||
if ("x86_64" IN_LIST ARCHITECTURE)
|
||||
add_subdirectory(xbyak EXCLUDE_FROM_ALL)
|
||||
if(USE_SYSTEM_XBYAK)
|
||||
find_package(xbyak REQUIRED)
|
||||
add_library(xbyak INTERFACE)
|
||||
target_link_libraries(xbyak INTERFACE xbyak::xbyak)
|
||||
else()
|
||||
add_subdirectory(xbyak EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Dynarmic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue