[CMake] No FileIsSymlink(...) for Win32?

Gonzalo Garramuño ggarra at advancedsl.com.ar
Thu Nov 15 13:33:21 EST 2007


Miguel A. Figueroa-Villanueva wrote:
> So, what I'm trying to asses is whether an implementation of the cmake:
> 
> SystemTools::FileIsSymlink(),
> 
> which now just returns false for windows, is feasible or not. 

Not likely.  You'd probably be slowing the make significantly if you had 
to check and resolve each file or directory for a shortcut.
I would certainly vote against that feature.

Your best bet is really to forget about shortcuts and use a Junction 
Point as a pseudo-symlink on an NTFS drive.  That should, in theory, be 
resolved by the OS directly.  As far as cmake/cygwin is concerned, then, 
that should be seen as just a normal directory.

P.S.  I said a .lnk file is just a text file when in fact it is a binary 
file.  Sorry.

-- 
Gonzalo Garramuño
ggarra at advancedsl.com.ar

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy


More information about the CMake mailing list