find_program returns wrong paths when searching on a Windows share
Starting with CMake 3.13.0 find_program returns wrong paths when searching on a Windows share. This did not happen on earlier versions, tested e.g. 3.12.4. When a network path is passed to find_program (e.g.: //host/path) the executable is found but the returned path has only one slash at the beginning (e.g.: /host/path).
- 3.12.4 --> works
- 3.13.0 --> does not work
- 3.14.0-rc4 --> does not work
The attached minimal example can be used to demonstrate the problem by using following command:
cmake.exe -DPROGRAM_NAME=test -DPROGRAM_PATH=//host/path .
The returned path is printed using the message command.