summaryrefslogtreecommitdiffstats
path: root/externals/CMakeLists.txt
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2020-06-15 21:10:39 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2020-06-15 23:37:27 +0200
commit256cb2979b2976017c94a4c2a42cae155bf604cd (patch)
treecb952cec9f424a594e1b4bf61251a55771b96a59 /externals/CMakeLists.txt
parentMerge pull request #4070 from ogniK5377/GetTPCMasks-fix (diff)
downloadyuzu-256cb2979b2976017c94a4c2a42cae155bf604cd.tar
yuzu-256cb2979b2976017c94a4c2a42cae155bf604cd.tar.gz
yuzu-256cb2979b2976017c94a4c2a42cae155bf604cd.tar.bz2
yuzu-256cb2979b2976017c94a4c2a42cae155bf604cd.tar.lz
yuzu-256cb2979b2976017c94a4c2a42cae155bf604cd.tar.xz
yuzu-256cb2979b2976017c94a4c2a42cae155bf604cd.tar.zst
yuzu-256cb2979b2976017c94a4c2a42cae155bf604cd.zip
Diffstat (limited to 'externals/CMakeLists.txt')
-rw-r--r--externals/CMakeLists.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index df7a5e0a9..9be5b2780 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -4,6 +4,13 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules")
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/externals/find-modules")
include(DownloadExternals)
+# 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()
+
# Catch
add_library(catch-single-include INTERFACE)
target_include_directories(catch-single-include INTERFACE catch/single_include)
@@ -75,11 +82,3 @@ 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()