From 2360b488071625b82a6933c450c8815aeb771772 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Tue, 23 Jul 2024 17:45:51 +0500 Subject: [PATCH] Fixed build on non-English locales (#1450) Signed-off-by: Vladislav Shchapov --- cmake/compilers/GNU.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compilers/GNU.cmake b/cmake/compilers/GNU.cmake index c1cd94a4f8..3b9af64263 100644 --- a/cmake/compilers/GNU.cmake +++ b/cmake/compilers/GNU.cmake @@ -48,7 +48,7 @@ endif() # information is written to either stdout or stderr. To not make any # assumptions, both are captured. execute_process( - COMMAND ${CMAKE_CXX_COMPILER} -xc -c /dev/null -Wa,-v -o/dev/null + COMMAND ${CMAKE_COMMAND} -E env "LANG=C" ${CMAKE_CXX_COMPILER} -xc -c /dev/null -Wa,-v -o/dev/null OUTPUT_VARIABLE ASSEMBLER_VERSION_LINE_OUT ERROR_VARIABLE ASSEMBLER_VERSION_LINE_ERR OUTPUT_STRIP_TRAILING_WHITESPACE