Use CMAKE_SYSTEM_PROCESSOR to detect the target architecture

This commit is contained in:
Fatih Bakir
2025-09-30 18:32:18 -07:00
parent c961fbe61a
commit 47067f5f56

View File

@@ -80,7 +80,7 @@ include(CMakeDependentOption)
CMAKE_DEPENDENT_OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON "NOT XXHASH_BUNDLED_MODE" OFF)
# detect architecture for DISPATCH mode
CMAKE_HOST_SYSTEM_INFORMATION(RESULT PLATFORM QUERY OS_PLATFORM)
set(PLATFORM ${CMAKE_SYSTEM_PROCESSOR})
message(STATUS "Architecture: ${PLATFORM}")
# libxxhash