Hi Folks, <br><br>Using CTK as an external project in more and more project, the path length could be an issue on windows platform. <br>Indeed, the path length on windows is limited to 260 characters. [1]<br><br><b>What motivates this change:</b><br>
<br>Such problem could arise, if, for example, your project is build in folder like:<br><br>"c:/Dashboards/Nightly/YourProject-Superbuild-Qt-PythonQt-With-Tcl-NoCLI-nightly" <br><br>"YourProject" relying also on Superbuild and using CTK as an external project .. will fail to build for some obscure reason. <br>
<br><br><b>Current CTK organization:</b><br><br>Currently the project are organized as described below:<br><br><font style="font-family: courier new,monospace;" size="1"> <CTK-SUPERBUILD>/CMakeExternals/Build/VTK<br>
<CTK-SUPERBUILD>/CMakeExternals/Build/DCMTK<br>...<br> <CTK-SUPERBUILD>/CMakeExternals/Source/VTK<br> <CTK-SUPERBUILD>/CMakeExternals/Source/DCMTK<br>...<br> <CTK-SUPERBUILD>/CMakeExternals/Download/VTK<br>
<CTK-SUPERBUILD>/CMakeExternals/Download/DCMTK<br>...<br> <CTK-SUPERBUILD>/CMakeExternals/Stamp/VTK<br> <CTK-SUPERBUILD>/CMakeExternals/Stamp/DCMTK<br>...<br> <CTK-SUPERBUILD>/CTK-build</font><br>
<br><br><b>Solution proposed:</b><br><br>With some minor changes, the structure would like:<br><br><font style="font-family: courier new,monospace;" size="1"> <CTK-SUPERBUILD>/CTK-build<br> <CTK-SUPERBUILD>/VTK<br>
<CTK-SUPERBUILD>/VTK-build<br> <CTK-SUPERBUILD>/VTK-cmake/src<br> <CTK-SUPERBUILD>/VTK-cmake/tmp<br> <CTK-SUPERBUILD>/VTK<br>
<CTK-SUPERBUILD>/DCMTK-build<br>
<CTK-SUPERBUILD>/DCMTK-cmake/src<br> <CTK-SUPERBUILD>/DCMTK-cmake/tmp</font><br><br>Pros:<br> - Doing so will decrease the average length of external project path associated with CTK. <br> - If needed, make the "cleaning" of external project easier "rm VTK*" instead of "cd" in each CMakeExternals sub folders .. <br>
<br><b>Action plan:</b><br><br>I plan to implement and test this change this coming week. <br><br>That improvment shouldn't cause any issue, but If it happens to be a problem within your project and you require some time to figure out a fix or would like to contact me. Please, do it before the end of the week :) <br>
<br>Next week, following your comments I will then integrate the change to CTK master.<br clear="all"><br>Thanks<br>Jc<br><br>[1] <a href="http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#maxpath">http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#maxpath</a><br>
<br>-- <br>+1 919 869 8849<br><br>