[CMake] TGZ installer following links

John R. Cary cary at txcorp.com
Fri Jun 17 09:46:55 EDT 2011


On 6/16/11 2:15 PM, Eric Noulard wrote:
>
> I never used install(CODE ... but besides that this should work.
> did you have a look at the symlinks found in the CPack temp install dir:
>
> _CPack_Packages/<xxx>/TGZ/<yyy>
>
> are they local as they should be or are they pointing to some absolute path.

They are correct in the directory:

octet.cary$ pwd
/home/research/cary/projects/composerall/builds/vorpalcomposer/ser/_CPack_Packages/Linux/TGZ
octet.cary$ ls -ls 
vorpal-4.3.0-r17099-composer-r452-Linux-x86_64.orig/Contents/
total 24
0 lrwxrwxrwx 1 cary research   13 2011-06-17 04:31 current -> Foo/current
4 drwxrwsr-x 4 cary research 4096 2011-06-17 04:31 Foo
octet.cary$

as links, but untarring the tarball shows that they were tarred as 
directories,

octet.cary$ ls -ls vorpal-4.3.0-r17099-composer-r452-Linux-x86_64/Contents/
total 32
4 drwxrwxr-x 5 cary research 4096 2011-06-17 07:39 current
4 drwxrwxr-x 5 cary research 4096 2011-06-17 07:38 Foo

as if tar had been called with '-h'.

Does CPack use tar?   Is there any way to control the options that
the tarring code is called with?

Thx....John Cary




More information about the CMake mailing list