mirror of
https://github.com/reactos/CMake.git
synced 2025-02-21 12:20:48 +00:00
Merge topic 'RunCMake-test-lang' into release-3.17
95dbcf0598 Tests: fix RunCMake.Make test when run on systems with non-english locale Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4389
This commit is contained in:
commit
d13489fe2b
@ -26,10 +26,13 @@ function(run_VerboseBuild)
|
|||||||
endif()
|
endif()
|
||||||
run_cmake_command(VerboseBuild-build ${CMAKE_COMMAND} --build . -v --clean-first)
|
run_cmake_command(VerboseBuild-build ${CMAKE_COMMAND} --build . -v --clean-first)
|
||||||
unset(RunCMake-stdout-file)
|
unset(RunCMake-stdout-file)
|
||||||
|
set(_backup_lang "$ENV{LANG}")
|
||||||
if(MAKE_IS_GNU)
|
if(MAKE_IS_GNU)
|
||||||
set(RunCMake-stdout-file VerboseBuild-nowork-gnu-stdout.txt)
|
set(RunCMake-stdout-file VerboseBuild-nowork-gnu-stdout.txt)
|
||||||
|
set(ENV{LANG} "C")
|
||||||
endif()
|
endif()
|
||||||
run_cmake_command(VerboseBuild-nowork ${CMAKE_COMMAND} --build . --verbose)
|
run_cmake_command(VerboseBuild-nowork ${CMAKE_COMMAND} --build . --verbose)
|
||||||
|
set(ENV{LANG} "${_backup_lang}")
|
||||||
endfunction()
|
endfunction()
|
||||||
run_VerboseBuild()
|
run_VerboseBuild()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user