From 1b7bce283a72a85788619a0bf36b02e22f7e289f Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 29 Dec 2025 10:47:23 -0800 Subject: [PATCH] CMake: Fix mingw if host has libxxhash-dev installed --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67cb6e59d..15971ec25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -328,7 +328,10 @@ find_package(Python 3.9 REQUIRED COMPONENTS Interpreter) set(BUILD_SHARED_LIBS OFF) -find_package(xxhash MODULE QUIET) +if (NOT CMAKE_CROSSCOMPILING) + find_package(xxhash MODULE QUIET) +endif() + if (NOT TARGET xxHash::xxhash) set(XXHASH_BUNDLED_MODE TRUE) set(XXHASH_BUILD_XXHSUM FALSE)