summaryrefslogtreecommitdiffstats
path: root/Tests/EnforceConfig.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-22 14:30:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-22 14:32:43 (GMT)
commit8ed6efbbd377c0941ba018200282fc961aa7d20e (patch)
treecf5f8c2f55359033068eb3206b8f1887c4b43bdd /Tests/EnforceConfig.cmake.in
parentfc4cbbc2a5f9f7d38e77c991a88400b29c39f182 (diff)
parentd0f0ba0f7a39e70fbed197e717292b74150cf84f (diff)
downloadCMake-8ed6efbbd377c0941ba018200282fc961aa7d20e.zip
CMake-8ed6efbbd377c0941ba018200282fc961aa7d20e.tar.gz
CMake-8ed6efbbd377c0941ba018200282fc961aa7d20e.tar.bz2
Merge topic 'default-generator-env'
d0f0ba0f7a Tests: Add environment generator tests a48ce8f4bf Help: Add documentation for default generator environment variables 083cf7e8a2 cmake: Allow default generator to be set by environment variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3218
Diffstat (limited to 'Tests/EnforceConfig.cmake.in')
-rw-r--r--Tests/EnforceConfig.cmake.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/EnforceConfig.cmake.in b/Tests/EnforceConfig.cmake.in
index 8c0817c..f84d180 100644
--- a/Tests/EnforceConfig.cmake.in
+++ b/Tests/EnforceConfig.cmake.in
@@ -23,4 +23,10 @@ if(NOT CTEST_CONFIGURATION_TYPE)
message("Guessing configuration ${CTEST_CONFIGURATION_TYPE}")
endif()
+# Isolate tests from user configuration in the environment.
+unset(ENV{CMAKE_GENERATOR})
+unset(ENV{CMAKE_GENERATOR_INSTANCE})
+unset(ENV{CMAKE_GENERATOR_PLATFORM})
+unset(ENV{CMAKE_GENERATOR_TOOLSET})
+
@TEST_HOME_ENV_CODE@