Merge topic 'std-filesystem-windows' into release-4.3

57c68e39ea cm::filesystem: Restore detection of std::filesystem support on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12729
This commit is contained in:
Brad King committed 2026-10-30 10:19:10 -04:00
commit c52f37782d
1 file changed
+2 -8
+2 -8
View File
@@ -26,20 +26,14 @@ int main()
return 1;
}
std::filesystem::path b1("C:\\path\\y\\..\\");
if (std::filesystem::weakly_canonical("\\\\?\\C:\\path\\x\\..") !=
b1.lexically_normal()) {
return 1;
}
// LWG 3070 not implemented on some old Visual Studio compilers (2017, for
// example)
// example), or on MinGW Clang.
if (!std::filesystem::path("/a:/b:").lexically_relative("/a:/c:").empty()) {
return 1;
}
// LWG 3096 not implemented on some old Visual Studio compilers (2017, for
// example)
if (fs::path("/a").lexically_relative("/a/.") != ".") {
if (std::filesystem::path("/a").lexically_relative("/a/.") != ".") {
return 1;
}
#endif