[cmake-developers] Export files in the build tree have a total path length which is unnecessarily long

Brad King brad.king at kitware.com
Tue Aug 9 10:11:21 EDT 2016


On 08/08/2016 02:54 PM, Alan W. Irwin wrote:
> For all such staging areas, would it be straightforward to hash the
> paths for the cmake-generated EXPORT files in the build tree to
> substantially reduce their pathlengths for the absolute install
> location case while still avoiding name collisions?

Actually it looks like we already do this, but the logic forgot
to account for the length of the file name.  Please try this fix:

 install(EXPORT): Fix support for mid-length install destinations on Windows
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c7a319ab

Thanks,
-Brad


More information about the cmake-developers mailing list