CMake: Fix mingw if host has libxxhash-dev installed

This commit is contained in:
Ryan Houdek committed 2025-12-29 10:47:23 -08:00
1 parent 5bbbe4d2e9
commit 1b7bce283a
1 file changed
+4 -1
+4 -1
View File
@@ -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)