[cmake-developers] Windows symbolic links handling

Manu ianmalcom at gmail.com
Mon Aug 14 06:35:38 EDT 2017


Hello,

Recently I migrated from cmake 2.8.12 to cmake 3.8 and FILE(TIMESTAMP ...)
behaviour changed. Now it reports symbolic link timestamp instead of
pointed file timestamp.

Looking through CMake documentation, it seems I could workaround this issue
using the command get_filename_component which documentation states there
is a parameter that seems to fix my problem:

REALPATH  = Full path to existing file with symlinks resolved


However, it does not resolves symlinks under Windows. I am working on a
patch to fix both get_filename_compoment and FILE(TIMESTAMP ...) and make
their behaviour consistent among architectures (under unix systems symlinks
are resolve in the refered commands).

What troubles me is that symlink under Windows is a feature introduced in
Windows Vista and the change for handling them will break Windows XP
compatibility. Is this acceptable?

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20170814/d958097f/attachment.html>


More information about the cmake-developers mailing list