summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-08-31 13:38:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-08-31 13:38:52 (GMT)
commitf9a1eeb2b4160b74b9410c6c4f39c72521f5c52a (patch)
tree5151c5e5cb22a6e7f489686e486d8063f09b10ed
parent01e14a9ca9317b5b6a4113f0c16e8eeda1606e24 (diff)
parentd3ac4e8246b0c48d1eabe80dd106a51a7bc51900 (diff)
downloadCMake-f9a1eeb2b4160b74b9410c6c4f39c72521f5c52a.zip
CMake-f9a1eeb2b4160b74b9410c6c4f39c72521f5c52a.tar.gz
CMake-f9a1eeb2b4160b74b9410c6c4f39c72521f5c52a.tar.bz2
Merge topic 'test-symlinks-with-ccache'
d3ac4e8246 Tests: Teach RunCMake.SymlinkTrees to tolerate CCACHE_BASEDIR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7622
-rw-r--r--Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake b/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake
index e5bfac4..58a111a 100644
--- a/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake
+++ b/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake
@@ -1,5 +1,8 @@
include(RunCMake)
+# Do not let ccache modify paths checked by the test cases.
+unset(ENV{CCACHE_BASEDIR})
+
function(run_symlink_test_case)
file(REMOVE_RECURSE
"${RunCMake_TEST_BINARY_DIR}/CMakeCache.txt"