mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-11 03:50:43 -05:00
In commit dd8365b3f1 (Merge branch 'upstream-KWSys' into update-kwsys,
2020-04-06, v3.18.0-rc1~397^2) we imported KWSys commit `019afb6ea`
(SystemTools: Drop GetCurrentWorkingDirectory 'collapse' argument,
2020-04-03). That caused `GetCurrentWorkingDirectory` to no longer send
paths through the KWSys translation map and broke CMake's detection of
the absolute path to a build directory containing a symbolic link.
Add our own `cmSystemTools::GetCurrentWorkingDirectory` wrapper around
the KWSys method in order to restore that mapping.
Test-case-by: Ben Boeckel <ben.boeckel@kitware.com>
Issue: #16228
Fixes: #20900
7 lines
326 B
CMake
7 lines
326 B
CMake
message(STATUS "source: '${CMAKE_SOURCE_DIR}'")
|
|
message(STATUS "binary: '${CMAKE_BINARY_DIR}'")
|
|
get_filename_component(real_source "${CMAKE_SOURCE_DIR}" REALPATH)
|
|
get_filename_component(real_binary "${CMAKE_BINARY_DIR}" REALPATH)
|
|
message(STATUS "real source: '${real_source}'")
|
|
message(STATUS "real binary: '${real_binary}'")
|