summaryrefslogtreecommitdiffstats
path: root/Tests/EnforceConfig.cmake.in
diff options
context:
space:
mode:
authorEicke Herbertz <wolletd@posteo.de>2019-05-04 21:54:58 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-22 11:40:51 (GMT)
commitd0f0ba0f7a39e70fbed197e717292b74150cf84f (patch)
treec257620240b55fb1e13ea5c378fb3e84037165b4 /Tests/EnforceConfig.cmake.in
parenta48ce8f4bf0677e9e8d054892836e8a980ffa435 (diff)
downloadCMake-d0f0ba0f7a39e70fbed197e717292b74150cf84f.zip
CMake-d0f0ba0f7a39e70fbed197e717292b74150cf84f.tar.gz
CMake-d0f0ba0f7a39e70fbed197e717292b74150cf84f.tar.bz2
Tests: Add environment generator tests
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@