[cmake-developers] Making _IMPORT_PREFIX from an installed exports-file available to an including file

Alexander Neundorf neundorf at kde.org
Sun Jun 5 15:46:15 EDT 2011


On Sunday, June 05, 2011 08:53:31 PM Michael Wild wrote:
> On 06/05/2011 08:50 PM, Alexander Neundorf wrote:
> > On Sunday, June 05, 2011 11:50:12 AM Michael Wild wrote:
> >> On 06/04/2011 10:28 PM, Alexander Neundorf wrote:
> >>> Hi,
> >>> 
> >>> when installing an export-file cmake has the nice feature to calculate
> > 
> >>> the CMAKE_INSTALL_PREFIX from the current location:
> > ...
> > 
> >>> If so, would it be ok if I move the code for calculating the
> >>> IMPORT_PREFIX into the "parent" exports file ?
> >>> 
> >>> Or should I add basically the same code in the generated "parent"
> >>> exports-file ?
> >>> 
> >>> Alex
> >> 
> >> I usually hard-code the relative path from the FooConfig.cmake file to
> >> the install-prefix and other installation directories using
> > 
> >> configure_file(). E.g:
> > Good idea, thanks :-)
> > You just influenced the future of KDE... ;-)
> > 
> > Alex
> 
> Wow, I'm really honored ;-) Enjoy your stay  in Randa and make sure to
> visit the Gornergrat for the best view of our alps!

Today I went to Täsch-Alp with my bike, man, that was steep and didn't get 
better :-)

Alex



More information about the cmake-developers mailing list