[CMake] cpack and paths too long

Andrea Crotti andrea.crotti.0 at gmail.com
Mon Apr 23 08:26:29 EDT 2012


On 04/20/2012 12:36 PM, Eric Noulard wrote:
> Nope, it would break backward compatibility, you can dig the ML
> for discussion about that "issue".
>
> My opinion is that building in-source is a bad habit that ought to be
> discouraged but the fact is,
> this is not currently easy to enforce out-of-source:
> http://www.cmake.org/Bug/view.php?id=6672
>


Ok the make problem was my mistake sorry..

we haven't really solved the long path problem yet unfortunately, even 
building out of source we get some very long paths...

Is there a way to shorten this generated path by CPack?

    C:/Temp/cmake_gen/_CPack_Packages/win32/NSIS*
*
Anyway the only solution I see for now is to check with a script the 
length of the paths, and abort before trying to
build anything.

Or the other possible solution is to run cpack from an OS which is not 
embarrassing, but not sure what version of CMake
we have available and if the NSIS is working fine on that version..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120423/d4614f0d/attachment.htm>


More information about the CMake mailing list