[CMake] Getting symlink source

Gonzalo Garramuño ggarra at advancedsl.com.ar
Sat Oct 6 19:16:37 EDT 2007


cmake2.5, close to latest SVN.

I have some files I need to copy but they are symlinks.  I need to 
obtain the actual path of the file (not the symlink).

I've tried doing:

GET_FILENAME_COMPONENT( REALFILE ${sym} ABSOLUTE )

but it returns just the original filename.  So this is either broken or 
I misunderstood the docs.

Is there another way to obtain the real path that the symlink points to?

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

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy



More information about the CMake mailing list