summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-10 15:34:45 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-08-10 15:35:34 (GMT)
commite259ea433d7bf2c5a4858113dcf2e7079ae53b26 (patch)
tree87deac0a8f909a6fd1ada2c29bed666361e14db8 /Tests/RunCMake
parent0953c0051edcf3d4fb103b864fc0a7068dfedf59 (diff)
parent3d2ab71d4201e05502abaab6a6a10cf0fb258f98 (diff)
downloadCMake-e259ea433d7bf2c5a4858113dcf2e7079ae53b26.zip
CMake-e259ea433d7bf2c5a4858113dcf2e7079ae53b26.tar.gz
CMake-e259ea433d7bf2c5a4858113dcf2e7079ae53b26.tar.bz2
Merge topic 'runcmake-make-english'
3d2ab71d42 Tests: Set LC_MESSAGES for RunCMake.Make Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5114
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/Make/RunCMakeTest.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/Make/RunCMakeTest.cmake b/Tests/RunCMake/Make/RunCMakeTest.cmake
index 6b2721c..32aafca 100644
--- a/Tests/RunCMake/Make/RunCMakeTest.cmake
+++ b/Tests/RunCMake/Make/RunCMakeTest.cmake
@@ -27,12 +27,15 @@ function(run_VerboseBuild)
run_cmake_command(VerboseBuild-build ${CMAKE_COMMAND} --build . -v --clean-first)
unset(RunCMake-stdout-file)
set(_backup_lang "$ENV{LANG}")
+ set(_backup_lc_Messages "$ENV{LC_MESSAGES}")
if(MAKE_IS_GNU)
set(RunCMake-stdout-file VerboseBuild-nowork-gnu-stdout.txt)
set(ENV{LANG} "C")
+ set(ENV{LC_MESSAGES} "C")
endif()
run_cmake_command(VerboseBuild-nowork ${CMAKE_COMMAND} --build . --verbose)
set(ENV{LANG} "${_backup_lang}")
+ set(ENV{LC_MESSAGES} "${_backup_lc_messages}")
endfunction()
run_VerboseBuild()