[cmake-developers] Making _IMPORT_PREFIX from an installed exports-file available to an including file
Alexander Neundorf
neundorf at kde.org
Sun Jun 5 14:50:23 EDT 2011
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
More information about the cmake-developers
mailing list