From 81a5efc7e55bac7e20ee9a996d0a21c2b2fcf09a Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 26 Dec 2024 22:27:10 -0800 Subject: [PATCH] update cmake minimum version to 3.10 --- cmake_unofficial/CMakeLists.txt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cmake_unofficial/CMakeLists.txt b/cmake_unofficial/CMakeLists.txt index 5316c6d4..89242ec6 100644 --- a/cmake_unofficial/CMakeLists.txt +++ b/cmake_unofficial/CMakeLists.txt @@ -5,7 +5,7 @@ # # For details, see . -cmake_minimum_required (VERSION 3.5 FATAL_ERROR) +cmake_minimum_required (VERSION 3.10 FATAL_ERROR) set(XXHASH_DIR "${CMAKE_CURRENT_SOURCE_DIR}/..") @@ -71,12 +71,9 @@ mark_as_advanced(XXHASH_BUNDLED_MODE) include(CMakeDependentOption) CMAKE_DEPENDENT_OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON "NOT XXHASH_BUNDLED_MODE" OFF) -if("${CMAKE_VERSION}" VERSION_LESS "3.10") - # Can not enable DISPATCH mode since it fails to recognize architecture. -else() - CMAKE_HOST_SYSTEM_INFORMATION(RESULT PLATFORM QUERY OS_PLATFORM) - message(STATUS "Architecture: ${PLATFORM}") -endif() +# detect architecture for DISPATCH mode +CMAKE_HOST_SYSTEM_INFORMATION(RESULT PLATFORM QUERY OS_PLATFORM) +message(STATUS "Architecture: ${PLATFORM}") # libxxhash if((DEFINED DISPATCH) AND (DEFINED PLATFORM))