diff options
| author | Brad King <brad.king@kitware.com> | 2022-08-30 16:38:31 -0400 |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2022-08-30 16:41:20 -0400 |
| commit | d3ac4e8246b0c48d1eabe80dd106a51a7bc51900 (patch) | |
| tree | 304fa1ca7fc14416e8903edf66c8251d5c368130 /Tests/RunCMake/SymlinkTrees | |
| parent | 9b4efcb92fc200d20b1ff3027cf819232db7060c (diff) | |
| download | cmake-d3ac4e8246b0c48d1eabe80dd106a51a7bc51900.tar.gz | |
Tests: Teach RunCMake.SymlinkTrees to tolerate CCACHE_BASEDIR
If the test is driven with a `ccache`-wrapped compiler then
the `CCACHE_BASEDIR` environment variable might break paths
the test checks.
Fixes: #23885
Diffstat (limited to 'Tests/RunCMake/SymlinkTrees')
| -rw-r--r-- | Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake b/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake index e5bfac484e..58a111a97d 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" |
