diff options
author | Brad King <brad.king@kitware.com> | 2021-06-29 13:21:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-06-29 13:22:05 (GMT) |
commit | dd6ce26f7e4c4e674df31fd13b67c256100bf74b (patch) | |
tree | 9e01fd359a6e70835e59cd84734eba63397d0d83 /Tests | |
parent | a158ac723eec376d7888159a78216f992438b10a (diff) | |
parent | 63177678d063fb0051541054d7657fb0c3177ea0 (diff) | |
download | CMake-dd6ce26f7e4c4e674df31fd13b67c256100bf74b.zip CMake-dd6ce26f7e4c4e674df31fd13b67c256100bf74b.tar.gz CMake-dd6ce26f7e4c4e674df31fd13b67c256100bf74b.tar.bz2 |
Merge topic 'tests-tolerate-NINJA_STATUS'
63177678d0 Tests/RunCMake/Ninja.*: Sanitize NINJA_STATUS since we expect default behavior
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6271
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/Ninja/RunCMakeTest.cmake | 3 | ||||
-rw-r--r-- | Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/Ninja/RunCMakeTest.cmake b/Tests/RunCMake/Ninja/RunCMakeTest.cmake index 8c91b34..3f239b9 100644 --- a/Tests/RunCMake/Ninja/RunCMakeTest.cmake +++ b/Tests/RunCMake/Ninja/RunCMakeTest.cmake @@ -18,6 +18,9 @@ else() message(FATAL_ERROR "'ninja --version' reported:\n${ninja_out}") endif() +# Sanitize NINJA_STATUS since we expect default behavior. +unset(ENV{NINJA_STATUS}) + if(CMAKE_HOST_WIN32) run_cmake(SelectCompilerWindows) else() diff --git a/Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake b/Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake index e7acbc2..559c8f7 100644 --- a/Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake +++ b/Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake @@ -5,6 +5,9 @@ include(RunCMake) set(RunCMake_GENERATOR "Ninja Multi-Config") set(RunCMake_GENERATOR_IS_MULTI_CONFIG 1) +# Sanitize NINJA_STATUS since we expect default behavior. +unset(ENV{NINJA_STATUS}) + function(check_files dir) cmake_parse_arguments(_check_files "" "" "INCLUDE;EXCLUDE" ${ARGN}) |