[CMake] TGZ installer following links
Eric Noulard
eric.noulard at gmail.com
Thu Jun 16 15:15:00 EDT 2011
2011/6/16 John R. Cary <cary at txcorp.com>:
> On 6/16/11 12:09 PM, Eric Noulard wrote:
>>
>> 2011/6/16 John R. Cary<cary at txcorp.com>:
>>>
>>> I am using the TGZ packager.
>
> Sorry, my error in not providing more complete info:
>
>> Which version of CMake/CPack ?
>> On which platform(s) ?
>
> octet.cary$ cmake --version
> cmake version 2.8.3
> octet.cary$ uname -a
> Linux octet.carys.home 2.6.30.10-105.2.23.fc11.x86_64 #1 SMP Thu Feb 11
> 07:06:34 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
> octet.cary$
cpack 2.8.3 should be ok w.r.t. symlinks at least some bugs were fixed
between 2.8.2 and 2.8.3.
>> Where does the symlinks comes from ?
>> In which CMake INSTALL commands are they found?
>
> if (NOT Win32)
> install(CODE
> "
> foreach (subdir foo bin current)
> execute_process(COMMAND ln -s Bar/\${subdir} .
> WORKING_DIRECTORY \${CMAKE_INSTALL_PREFIX}/${FLAVOR_INSTALL_ROOT}
> )
> endforeach ()
> "
> )
> endif ()
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.
CPack uses DESTDIR so may be you should use:
WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${FLAVOR_INSTALL_ROOT}
instead of:
WORKING_DIRECTORY \${CMAKE_INSTALL_PREFIX}/${FLAVOR_INSTALL_ROOT}
> If the above does not immediately suggest a solution to someone, I
> will create a test case.
No clue beside the DESTDIR thing.
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list