From d0bdd26c26b72004144e656c9abc6232b80f3f60 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sat, 30 May 2020 10:55:27 +1000 Subject: Add xbyak external --- externals/CMakeLists.txt | 8 ++++++++ externals/xbyak | 1 + 2 files changed, 9 insertions(+) create mode 160000 externals/xbyak (limited to 'externals') diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 0b40cd1b0..df7a5e0a9 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -75,3 +75,11 @@ if (ENABLE_WEB_SERVICE) target_compile_definitions(httplib INTERFACE -DCPPHTTPLIB_OPENSSL_SUPPORT) target_link_libraries(httplib INTERFACE OpenSSL::SSL OpenSSL::Crypto) endif() + +if (NOT TARGET xbyak) + if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64) + add_library(xbyak INTERFACE) + target_include_directories(xbyak SYSTEM INTERFACE ./xbyak/xbyak) + target_compile_definitions(xbyak INTERFACE XBYAK_NO_OP_NAMES) + endif() +endif() diff --git a/externals/xbyak b/externals/xbyak new file mode 160000 index 000000000..82b70e665 --- /dev/null +++ b/externals/xbyak @@ -0,0 +1 @@ +Subproject commit 82b70e665918efc2ee348091742fd0237b3b68c5 -- cgit v1.2.3