diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 5a82572c8c..29f2f82398 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -40,7 +40,8 @@ string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) message(STATUS "Build type is ${CMAKE_BUILD_TYPE}") # set CMAKE_BUILD_TARGET_ARCH -execute_process(COMMAND bash "-c" "lscpu | grep 'Architecture' | awk '{print $2}'" +# use `lscpu | grep 'Architecture' | awk '{print $2}'` only support system which language is en_US.UTF-8 +execute_process(COMMAND bash "-c" "uname -m" OUTPUT_VARIABLE CMAKE_BUILD_TARGET_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE)