diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-08-16 19:36:50 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-08-19 16:37:00 (GMT) |
commit | ef0cd3dc40b0e22e99a05394463e316c98de09bf (patch) | |
tree | 6850c65b0d316bdb4b711b510a3e4ddec732f32c /Tests/RunCMake/CMakePresets/GoodNoSCache.cmake | |
parent | 7b9757e50715ab6abc08e7005c66565f5c965de3 (diff) | |
download | CMake-ef0cd3dc40b0e22e99a05394463e316c98de09bf.zip CMake-ef0cd3dc40b0e22e99a05394463e316c98de09bf.tar.gz CMake-ef0cd3dc40b0e22e99a05394463e316c98de09bf.tar.bz2 |
Tests: Fix CMakePresets test in unusual environments
Tweak test in RunCMake/CMakePresets/GoodNoSCache.cmake to use the
canonical directory for comparison. This avoids an effectively spurious
test failure if the overall CMake build directory is a symlink.
Diffstat (limited to 'Tests/RunCMake/CMakePresets/GoodNoSCache.cmake')
-rw-r--r-- | Tests/RunCMake/CMakePresets/GoodNoSCache.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresets/GoodNoSCache.cmake b/Tests/RunCMake/CMakePresets/GoodNoSCache.cmake index df58e72..d9e399f 100644 --- a/Tests/RunCMake/CMakePresets/GoodNoSCache.cmake +++ b/Tests/RunCMake/CMakePresets/GoodNoSCache.cmake @@ -1,4 +1,5 @@ include(${CMAKE_CURRENT_LIST_DIR}/TestVariable.cmake) get_filename_component(_parent "${CMAKE_SOURCE_DIR}" DIRECTORY) +file(REAL_PATH "${_parent}" _parent) test_variable(CMAKE_BINARY_DIR "" "${_parent}/GoodNoSCachePrep-build") |