<p><br>
Hi All !</p>
<p>I&#39;m using cmake for a few months ago and I just started to try to use cpack to distribute my application. I use some lib&#39;s, including some Kitware libraries. I had build a CPackConfig.cmaje file and when I execute &quot;cpack&quot;, I receive the following message:</p>

<p>CPack: Create package using TGZ<br>
CPack: Install projects<br>
CPack: - Install directory: /root/medsquare/<br>
CPack Error: Cannot create symlink: /lib/libvtkgdcm.so.2.0--&gt; libvtkgdcm.so.2.0.18<br><br></p>
<p>My main question is: I searched at the history of the CMake archive and found the answer that I should type &quot;cpack -E create_symlink&quot; that should solve it. But it didn&#39;t work and my doubt include the fact that this option doesn&#39;t appear at the Man CPACK file or the website documentation.<br>
</p>
<p>Someone has already passed trough it ?</p>
<p>Here is my cpack lines:</p>
<p>set(CPACK_GENERATOR, &quot;TZ&quot;)<br>
set(CPACK_INSTALL_DIRECTORY &quot;MedSquare&quot;)<br>
set(CPACK_SOURCE_INSTALLED_DIRECTORIES &quot;/root/medsquare/;source&quot;)<br>
set(CPACK_DEFAULT_LOCATION &quot;./&quot;)<br>
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY &quot;1&quot;)<br>
set(CPACK_INSTALL_CMAKE_PROJECTS &quot;/root/medsquare/source&quot;)<br>
set(CPACK_INTALL_PREFIX &quot;/root/medsquare/installer&quot;)<br>
set(CPACK_PACKAGE_FILE_NAME &quot;medsquare&quot;)<br>
set(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;/root/medsquare&quot;)<br>
set(CPACK_PACKAGING_INSTALL_PREFIX &quot;/root/medsquare&quot;)<br>
include(CPack)<br><br></p>
<p>Thanks,</p>
<p>Kassim<br>
</p>