summarylogtreecommitdiffstats
path: root/unbundle-xbyak.patch
blob: d3384754f45cd22d09058e5362154705514d81d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,6 +136,11 @@ if (DYNARMIC_TESTS_USE_UNICORN)
     find_package(Unicorn REQUIRED)
 endif()
 
+if (ARCHITECTURE STREQUAL "x86" OR ARCHITECTURE STREQUAL "x86_64")
+    find_package(xbyak REQUIRED)
+    add_library(xbyak ALIAS xbyak::xbyak)
+endif()
+
 # Pull in externals CMakeLists for libs where available
 add_subdirectory(externals)