summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Make
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-08-08 16:36:49 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-08-08 16:36:49 (GMT)
commit3d2ab71d4201e05502abaab6a6a10cf0fb258f98 (patch)
tree3455b60c9fb41baaf9b4345190574f1033bf7967 /Tests/RunCMake/Make
parentf51e93036527aa7da3ada07e5d1a6ed4bcb2de51 (diff)
downloadCMake-3d2ab71d4201e05502abaab6a6a10cf0fb258f98.zip
CMake-3d2ab71d4201e05502abaab6a6a10cf0fb258f98.tar.gz
CMake-3d2ab71d4201e05502abaab6a6a10cf0fb258f98.tar.bz2
Tests: Set LC_MESSAGES for RunCMake.Make
LANG was already set, but is not enough on some systems. Set LC_MESSAGES too.
Diffstat (limited to 'Tests/RunCMake/Make')
-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()