Hi,<br><br>I use install(SCRIPT...) to make links during installation. It works with a normal installation (make install) but the script seems not to be executed by CPack or CPack RPM (I have not tested other generators). I could solve the problem by making a specific RPM spec but the post-install code would be duplicated in two files.<br>
<br>Is it intended that CPack doesn't execute install(SCRIPT...) ? Is there a better way to create links between files ?<br><br>Thanks,<br><br>J. Bedouet<br><br>P.S. My little test below<br><br><br><span style="font-family: courier new,monospace;">mkdir build</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/opt/cmake-2.8.4/bin/cmake -D CMAKE_INSTALL_PREFIX=../install ..</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">make install</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ls -l ../install/share/TestLink/</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">total 4</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">-rw-r--r-- 1 xxxxxxxx xxxx 16 May 5 17:18 file</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">lrwxrwxrwx 1 xxxxxxxx xxxx 4 May 5 17:31 link -> file</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cpack -G RPM</span><br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">rpm -qlp TestLink-0.1.1-Linux.rpm </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/usr/share/TestLink/file</span><br style="font-family: courier new,monospace;"><br>