Skip to content

SystemTools.cxx: Fix real_path symlink expanding for Windows

Christian Rendina requested to merge lakor64/kwsys:realpathsl into master

The purpose of this PR is to fix Symbolic link expanding for the Windows platform when using cmake(REAL_PATH) This behavour matches what's done for Linux already.

Related to issue: cmake/cmake#17206 (closed)

The API used is available since Vista which I don't think it's a problem as CMake doesn't support XP anymore.

The reason why I added the wcswcs for \?\ is that I belive starting from Windows 10+ there's the extra \?\ path for expanding the MAX_PATH limit (260) which shouldn't be present on Windows 7 (altrough I haven't tested that specific case).

This is my first PR, so I hope I have followed the guidelines and the PR correctly, if there's anything else I need to adjust let me know.

Merge request reports

Loading