[CMake] [CPack] RPM generator and directory symlink

Luc J. Bourhis luc_j_bourhis at mac.com
Wed Oct 15 18:08:39 EDT 2014


Thanks for your help!


Domen Vrankar wrote
> I'm assuming that you used something like:
> 
> install(CODE "
>     EXECUTE_PROCESS(COMMAND ln -sf ${SOME_PATH}/subdir-version subdir
>        WORKING_DIRECTORY
> ${LOCATION_WHERE_CPackRPM_IS_PACKAGING_YOUR_FILES}
>        )
>     " COMPONENT bin)

No, I used install(DIRECTORY …). It was all built and installed using
External_Project. Thus the directory symlink was not created by my code.


Domen Vrankar wrote
> A workaround that you could use is to specify something like
> 
> set(CPACK_RPM_bin_USER_FILELIST "%config /subdir")
> 
> and this will force CPackRPM to treat the symlink as a config file.

What is the meaning of bin in the middle of that variable name?



-----
--
Luc J. Bourhis

--
View this message in context: http://cmake.3232098.n2.nabble.com/CPack-RPM-generator-and-directory-symlink-tp7588751p7588756.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list