Bug: cmake_path normalization does not remove trailing slash
The following
cmake_path(SET path NORMALIZE "${CMAKE_CURRENT_LIST_DIR}/../../..")
message(STATUS "${CMAKE_CURRENT_LIST_DIR}, ${path}")
returns
-- /Volumes/Data/Repositories/cmake-general/cmake-general/internal/cmake, /Volumes/Data/Repositories/cmake-general/
The last slash should not be there according to the documentation.
Edited by Gabriel Nützi