mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user