get_filename_component REALPATH may have different case than file REAL_PATH
OS: Windows
get_filename_component(out ${path} REALPATH) returns the file name as it is on disk (if it exists) even if ${path} case differs.
file(REAL_PATH ${path} out) always returns the filename as given in the original variable ${path}, not as it is on disk.
The docs state that REALPATH is offered by file(REAL_PATH) but the results are not the same.
Is the above behavior of get_filename_component(... REALPATH) intentional, or just an accident?
Edited by Balázs Oroszi