[CMake] TGZ installer following links

Eric Noulard eric.noulard at gmail.com
Fri Jun 17 16:59:37 EDT 2011


2011/6/17 John R. Cary <cary at txcorp.com>:
> Attached is a minimal standalone example that illustrates the problem.
>
> If build dir is next to the directory resulting from untarring this, do
>
> cmake -DCMAKE_INSTALL_PREFIX=$HOME/tmp/cmtprefix ../cmt
> make all install
> # You will see that in the installation, the top cmtdir is a link:
> numbersix.cary$ ls -l $HOME/tmp/cmtprefix/cmtdir
> lrwxrwxr-x  1 cary  research  10 Jun 17 11:16
> /Users/cary/tmp/cmtprefix/cmtdir -> bin/cmtdir
> # then do
> make package
> tar xzf cmt-1.1.1-Darwin.tar.gz
> # and you will see that the top-level cmtdir is a directory:
> numbersix.cary$ ls -l cmt-1.1.1-Darwin
> total 0
> drwxrwxr-x  3 cary  research  102 Jun 17 11:25 bin
> drwxrwxr-x  3 cary  research  102 Jun 17 11:25 cmtdir
>
> such that two copies of the binary are installed.
>
> Thanks for your help!


OK I have the same behavior on my box using your example.
I did open a bug report:
http://public.kitware.com/Bug/view.php?id=12284

I'll try to seek the reason.
-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list