diff options
author | Rolf Eike Beer <eb@emlix.com> | 2020-02-24 16:16:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-02-26 12:41:07 (GMT) |
commit | 95dbcf0598958557069d3c38d2cc9c0e1c4cda12 (patch) | |
tree | 7b499f3c21e8b538b040bf68ab39ea423ba5086a /Tests/RunCMake/Make/RunCMakeTest.cmake | |
parent | 8d6ea4401c8fc4c18d070378fc5284b93c311d3a (diff) | |
download | CMake-95dbcf0598958557069d3c38d2cc9c0e1c4cda12.zip CMake-95dbcf0598958557069d3c38d2cc9c0e1c4cda12.tar.gz CMake-95dbcf0598958557069d3c38d2cc9c0e1c4cda12.tar.bz2 |
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
Diffstat (limited to 'Tests/RunCMake/Make/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/Make/RunCMakeTest.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/Make/RunCMakeTest.cmake b/Tests/RunCMake/Make/RunCMakeTest.cmake index 82db6b7..6b2721c 100644 --- a/Tests/RunCMake/Make/RunCMakeTest.cmake +++ b/Tests/RunCMake/Make/RunCMakeTest.cmake @@ -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() |