[CMake] Using relative paths with INSTALL

Clinton Stimpson clinton at elemtech.com
Mon Jun 8 14:13:57 EDT 2009


Clinton Stimpson wrote:
> Timothy M. Shead wrote:
>> We're going off on a tangent here, so I'll restate my question.  
>> Forget the context.  If I write
>>
>>   INSTALL(FILES foo DESTINATION ../bar)
>>
>> ... it works fine today.  Will it work in the future?  Is it 
>> guaranteed to work on all platforms?  I ask because I recognize that 
>> it is an unusual use-case.
>>
>> Many thanks,
>> Tim
>>
> But you'd only ever do that with the cpack bundle generator, right?
> Why not use the drag-n-drop generator instead?  Then you won't have to 
> go outside the install prefix.  This is one of the reasons I 
> contributed the drag-n-drop generator.
>
> Clint
>
>
And I don't think this
INSTALL(FILES foo DESTINATION ../bar)
will work with the PackageMaker or DragNDrop generators.

Clint



More information about the CMake mailing list