mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
Merge topic 'fix-commandline-test-with-symlinks'
7b62e40a64 Tests: Fix RunCMake.CommandLine test in unusual environments
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7660
This commit is contained in:
@@ -9,6 +9,11 @@ foreach(d CMAKE_BINARY_DIR CMAKE_CURRENT_BINARY_DIR CMAKE_SOURCE_DIR CMAKE_CURRE
|
||||
if(EXPECTED_WORKING_DIR STREQUAL "${${d}}")
|
||||
message(STATUS "${d} is the expected working directory (${EXPECTED_WORKING_DIR})")
|
||||
else()
|
||||
message(FATAL_ERROR "${d} = \"${${d}}\" is not the expected working directory (${EXPECTED_WORKING_DIR})")
|
||||
get_filename_component(resolved "${EXPECTED_WORKING_DIR}" REALPATH)
|
||||
if(resolved STREQUAL "${${d}}")
|
||||
message(STATUS "${d} is the expected working directory (${resolved}) after symlink resolution")
|
||||
else()
|
||||
message(FATAL_ERROR "${d} = \"${${d}}\" is not the expected working directory (${EXPECTED_WORKING_DIR})")
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user