[cmake-developers] General Config.cmake file issue on ArchLinux

Stephen Kelly steveire at gmail.com
Thu Dec 6 17:09:26 EST 2012


Alexander Neundorf wrote:

> On Thursday 06 December 2012, Stephen Kelly wrote:
> ...
>> I don't fully follow (too much 'the example' etc :)), but I guess it's
>> not too important. I think the two cases we're talking about are clear
>> 
>> * Installing to a location where one or more locations below
>> ${CMAKE_INSTALL_PREFIX} are symlinks
>> * Installing to a location where locations below ${CMAKE_INSTALL_PREFIX}
>> are not symlinks, but creating a symlink from outside the prefix to
>> inside it.
> 
> Should find_package() maybe check whether any of the directories in its
> search list actually refer to the same directory, and warn in this case ?

That could be a good idea if it can work.

> Beside warning, could it do something more helpful to fix the situation ?

So far I don't have any better idea. 

I think the best approach is to add warnings for the cases we've identified 
here.

Adding the Arch-specific patch you proposed is not affected by that, and 
could also be done.

Thanks,

Steve.





More information about the cmake-developers mailing list