Skip to content

Windows: Normalize slashes in compiler -print-sysroot path

Brad King requested to merge brad.king/cmake:compiler-sysroot-slashes into master

Since !4585 (merged) we detect the compiler -print-sysroot output and save it. On Windows, the value may include backslashes. Convert the path to CMake's forward-slash convention for storage.

Fixes: #20679 (closed)

Merge request reports