[CMake] RPATH/RUNPATH

David Cole david.cole at kitware.com
Wed Aug 17 14:57:26 EDT 2011


You can use CMake's RPATH related properties to put a path containing
"$ORIGIN" into the final installed executable, and it will work as
long as the underlying OS library loader supports ORIGIN. From what I
understand, ORIGIN support is not uniformly available in all
loaders...

Does that answer your question?


On Wed, Aug 17, 2011 at 2:19 PM, Knox, Kent <Kent.Knox at amd.com> wrote:
> Yes, I have read this link (before my list inquiry) and it does not answer my questions.  At least, I could not derive anything from it relating to RUNPATH or $ORIGIN support.  Thanks for the answer though.
>
> -----Original Message-----
> From: David Cole [mailto:david.cole at kitware.com]
> Sent: Wednesday, August 17, 2011 11:37 AM
> To: Knox, Kent
> Cc: cmake at cmake.org
> Subject: Re: [CMake] RPATH/RUNPATH
>
> Perhaps try googling "cmake rpath" ... ?
>
>  http://www.cmake.org/Wiki/CMake_RPATH_handling
>
>
> On Wed, Aug 17, 2011 at 12:03 PM, Knox, Kent <Kent.Knox at amd.com> wrote:
>> Is there any support or planned support in CMake for RUNPATH?  On a related note, is it possible for CMake to set the RPATH/RUNPATH using $ORIGIN on 'make install'?  This way the install directory can be self-referential and moved as a unit around the filesystem?
>>
>> Kent
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list