From 7191d72acd1fd74378d76fe20ddb4c4cc7455422 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 26 Sep 2025 08:36:42 -0400 Subject: [PATCH] Tests/EnforceConfig: clear the `CMAKE_BUILD_TYPE` environment variable Some tests want to test the config-less build type (at least `Tests/RunCMake/add_custom_command@WorkingDirectory`). --- Tests/EnforceConfig.cmake.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/EnforceConfig.cmake.in b/Tests/EnforceConfig.cmake.in index 6d634d60a9..a61b7bdd43 100644 --- a/Tests/EnforceConfig.cmake.in +++ b/Tests/EnforceConfig.cmake.in @@ -32,6 +32,7 @@ endif() unset(ENV{NO_COLOR}) unset(ENV{CLICOLOR}) unset(ENV{CLICOLOR_FORCE}) +unset(ENV{CMAKE_BUILD_TYPE}) unset(ENV{CMAKE_GENERATOR}) unset(ENV{CMAKE_GENERATOR_INSTANCE}) unset(ENV{CMAKE_GENERATOR_PLATFORM})