mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
Tests: fix RunCMake.Make test when run on systems with non-english locale
Set `LANG=C` in the environment so the output of `make` is predictable. Fixes: #19689
This commit is contained in:
1 parent
8d6ea4401c
commit
95dbcf0598
1 file changed
+3
@@ -26,10 +26,13 @@ function(run_VerboseBuild)
|
||||
endif()
|
||||
run_cmake_command(VerboseBuild-build ${CMAKE_COMMAND} --build . -v --clean-first)
|
||||
unset(RunCMake-stdout-file)
|
||||
set(_backup_lang "$ENV{LANG}")
|
||||
if(MAKE_IS_GNU)
|
||||
set(RunCMake-stdout-file VerboseBuild-nowork-gnu-stdout.txt)
|
||||
set(ENV{LANG} "C")
|
||||
endif()
|
||||
run_cmake_command(VerboseBuild-nowork ${CMAKE_COMMAND} --build . --verbose)
|
||||
set(ENV{LANG} "${_backup_lang}")
|
||||
endfunction()
|
||||
run_VerboseBuild()
|
||||
|
||||
|
||||
Reference in new issue
Block a user