From d93dd027d12d787df8ec133ff85ae5d61c10b2c1 Mon Sep 17 00:00:00 2001 From: euvre <93761161+euvre@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:00:18 +0800 Subject: [PATCH] Update CMakeLists.txt (#2556) --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d422ba8e92..96675b1405 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,8 +34,7 @@ endif() #set(CMAKE_BUILD_TYPE "Debug") #set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=thread -O0 -fno-omit-frame-pointer -fno-optimize-sibling-calls") -execute_process(COMMAND uname -p OUTPUT_VARIABLE HOST_ARCH) -string(TOLOWER ${HOST_ARCH} HOST_ARCH) +string(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} HOST_ARCH) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RELEASE)