From 2b9aee5c8fd784d7bfe736074547c114af878326 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Mon, 27 Nov 2023 06:02:39 +0000 Subject: [PATCH] CMake: allow using system xxhash --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1eede22aa..935b61dc68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -663,10 +663,7 @@ dolphin_find_optional_system_library(pugixml Externals/pugixml) dolphin_find_optional_system_library_pkgconfig(ENET libenet>=1.3.8 enet::enet Externals/enet) -if(NOT XXHASH_FOUND) - message(STATUS "Using static xxhash from Externals") - add_subdirectory(Externals/xxhash) -endif() +dolphin_find_optional_system_library_pkgconfig(xxhash libxxhash>=0.8.2 xxhash::xxhash Externals/xxhash) dolphin_find_optional_system_library(BZip2 Externals/bzip2)