mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
POSIX specifies that two leading slashes have implementation-defined interpretation, so CMake 3.31 and below did not normalize away leading double slashes. However, most implementations simply treat a leading `//` as just `/`, so CMake 4.0 now normalizes them away when they do not correspond to a network path on Windows. This change exposed that we were not normalizing `CMAKE_TOOLCHAIN_FILE` before passing its value to `include()` the first time if it was not passed with the `FILEPATH` or `PATH` cache entry type. Fix that. Fixes: #27010
2 lines
88 B
Plaintext
2 lines
88 B
Plaintext
CMAKE_TOOLCHAIN_FILE='/[^/][^']*/Tests/RunCMake/CommandLine/Toolchain/toolchain\.cmake'
|