Skip to content

Source: Enhance check for C++17 filesystem support

scivision requested to merge scivision/cmake:win-fs into master
  • Add lexically_normal test for all platforms.

  • On Windows, MinGW does not currently handle lexically_normal() correctly on UNC path, but MSVC and IntelLLVM do--add a comment on this to avoid future confusion.

  • Add test with \\?\ notation and weakly_canonical that also triggers the MinGW bug, but is fine with MSVC and oneAPI, for a more robust and comprehensive test.

For reference, the bug with UNC and MinGW occurs with conversion to .string() or .generic_string() https://gist.github.com/scivision/b13f69c13ae533bd884095b4f7dbafed

Edited by Brad King

Merge request reports