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

Michael Wild themiwi at gmail.com
Sun Jun 5 14:53:31 EDT 2011


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!

Michael



More information about the cmake-developers mailing list