mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 23:59:53 -05:00
Tests: Set LC_MESSAGES for RunCMake.Make
LANG was already set, but is not enough on some systems. Set LC_MESSAGES too.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user