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

Brad King brad.king at kitware.com
Mon Aug 8 13:40:57 EDT 2016


On 08/07/2016 01:39 AM, Alan W. Irwin wrote:
> why is the install location of these export files included in the
> pathname for both export files?
> That significantly increases the pathlength of these files to no purpose since the
> install location of these files is already known to CMake by other means.

These files are generated by the install(EXPORT) command.  Their
location is a staging area for "make install" to copy to the actual
install destination.  The install destination is used in their
staging location to make sure there are no collisions.

Normally the install(EXPORT) command is given a relative DESTINATION
so the path is not very long.  Are you giving it an absolute
destination?  Why?

-Brad


More information about the cmake-developers mailing list