From 63177678d063fb0051541054d7657fb0c3177ea0 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 26 Jun 2021 15:32:38 +0900 Subject: Tests/RunCMake/Ninja.*: Sanitize NINJA_STATUS since we expect default behavior FYI, NINJA_STATUS is "[%f/%t] " by default. --- Tests/RunCMake/Ninja/RunCMakeTest.cmake | 3 +++ Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake | 3 +++ 2 files changed, 6 insertions(+) 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}) -- cgit v0.12