Hi all,<div><br></div><div>I&#39;m having an issue to use CPack with big file paths. I have cmake-2.8.9.</div><div><br></div><div>I built a very simple testcase to show this issue. These are the files in the project:</div>

<div><br></div><div><div>./CMakeLists.txt</div><div>./control/examples/path-with-very-long-length/some_file2.txt</div><div>./control/examples/path-with-very-long-length/to-test-if-it-breaks-the-cpack/a-little-bit-more-characters-to-make-it-big/ok-that-is-enough.txt</div>

<div>./control/examples/some_file.txt</div></div><div><br></div><div>All files are empty, unless for the CMakeLists.txt, of course. It has the following:</div><div><br></div><div><div>---------------------</div><div>cmake_minimum_required(VERSION 2.8)</div>

<div>project (bugtest)</div><div><br></div><div>install(DIRECTORY control/ DESTINATION control)</div><div><br></div><div>include (InstallRequiredSystemLibraries)</div><div>include (CPack)</div></div><div>---------------------</div>

<div><br></div><div>As a simple way to create the other empty files, we can use the following commands:</div><div><br></div><div>     mkdir -p control/examples/path-with-very-long-length/to-test-if-it-breaks-the-cpack/a-little-bit-more-characters-to-make-it-big</div>

<div>     touch control/examples/some_file.txt</div><div>     touch control/examples/path-with-very-long-length/some_file2.txt</div><div>     touch control/examples/path-with-very-long-length/to-test-if-it-breaks-the-cpack/a-little-bit-more-characters-to-make-it-big/ok-that-is-enough.txt</div>

<div><br></div><div><br></div><div><br></div><div>The 2 files with smaller paths goes to the expected locations under</div><div><br></div><div>     &lt;tar_root&gt;/bugtest-0.1.1/</div><div><br></div><div>but the file with the bigger path gets part of the path stripped and loose the initial &quot;bugtest-0.1.1&quot; directory, going to:</div>

<div><br></div><div>     &lt;tar_root&gt;/to-test-if-it-breaks-the-cpack/a-little-bit-more-characters-to-make-it-big/ok-that-is-enough.txt</div><div><br></div><div>I&#39;m building and packaging it with the commands:</div>

<div><br></div><div><div>     cmake ../bugtest</div><div>     cpack -C CPackConfig.cmake -G TGZ<br><br><div>Can someone help me to find out if it is a bug or how to fix it?</div><div><br></div><br>Thanks for any help,<br>

Marcus</div></div><div><br></div>