blob: 98dc57a63bfa92bbff6183656783c709c77ca6c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From: Pavel Sobolev <contact@paveloom.dev>
Subject: [PATCH] Use the system `xxhash` library.
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -517,16 +517,4 @@ if (ENABLE_VULKAN)
endif()
endif()
-set(XXHASH_BUILD_XXHSUM OFF)
-add_subdirectory(xxHash/cmake_unofficial EXCLUDE_FROM_ALL)
-target_compile_definitions(xxhash PRIVATE XXH_FORCE_MEMORY_ACCESS=2)
-if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64")
- target_compile_definitions(xxhash PRIVATE XXH_VECTOR=XXH_SSE2)
- message(STATUS "Enabling SSE2 for xxHash")
-elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|ARM64|armv8")
- target_compile_definitions(xxhash PRIVATE XXH_VECTOR=XXH_NEON)
- message(STATUS "Enabling NEON for xxHash")
-else()
- target_compile_definitions(xxhash PRIVATE XXH_VECTOR=XXH_SCALAR)
- message(STATUS "Disabling SIMD for xxHash")
-endif()
+add_library(xxhash SHARED IMPORTED)
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 4b6e74c49..222d7cc3b 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -176,4 +176,4 @@ if (SSE42_COMPILE_OPTION)
target_compile_options(citra_common PRIVATE ${SSE42_COMPILE_OPTION})
endif()
-target_link_libraries(citra_common PUBLIC xxHash::xxhash)
\ No newline at end of file
+target_link_libraries(citra_common PUBLIC xxhash)
|