Re: [CMake] RPM packages and install(SCRIPT...)

2011-05-09 Thread Judicaël Bedouet
Hi Eric, You should use: execute_process( COMMAND ${CMAKE_COMMAND} -E create_symlink file link WORKING_DIRECTORY $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/TestLink ) Thanks, it works fine. so the INSTALL(SCRIPT ...) should work for all of them as soon as symlinks are supported (which

[CMake] RPM packages and install(SCRIPT...)

2011-05-05 Thread Judicaël Bedouet
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

Re: [CMake] RPM packages and install(SCRIPT...)

2011-05-05 Thread Eric Noulard
2011/5/5 Judicaël Bedouet j.bedo...@infonie.fr: Hi, Hi Judicaël, 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