[CMake] Dynamic linking doesn't work after install

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Apr 22 10:09:07 EDT 2011


On Fri, Apr 22, 2011 at 9:57 AM, David Doria <daviddoria at gmail.com> wrote:
>> I think the CMake page on RPATHs might be what you are looking for.
>>
>> http://www.cmake.org/Wiki/CMake_RPATH_handling
>
> Yea I read that, but I didn't really follow/see how to fix this
> problem. Surely there is a "just copy the executable" option?
>
Did you try,

SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

which is in one of the sections of that wiki article detailing using
full RPATH for installed binaries.

Marcus


More information about the CMake mailing list