Hi, 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.
Is it intended that CPack doesn't execute install(SCRIPT...) ? Is there a better way to create links between files ? Thanks, J. Bedouet P.S. My little test below mkdir build /opt/cmake-2.8.4/bin/cmake -D CMAKE_INSTALL_PREFIX=../install .. make install ls -l ../install/share/TestLink/ total 4 -rw-r--r-- 1 xxxxxxxx xxxx 16 May 5 17:18 file lrwxrwxrwx 1 xxxxxxxx xxxx 4 May 5 17:31 link -> file cpack -G RPM rpm -qlp TestLink-0.1.1-Linux.rpm /usr/share/TestLink/file
cmake_minimum_required(VERSION 2.6) project(TestLink) install(FILES file DESTINATION share/TestLink) install(SCRIPT script) include(CPack)
file
Description: Binary data
script
Description: Binary data
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
