[CMake] rpath business: CPack / running binaries in the build dir

Eric Noulard eric.noulard at gmail.com
Tue Nov 2 18:22:29 EDT 2010


2010/11/2 Szilárd Páll <szilard.pall at cbr.su.se>:
> Hi,
>
> In order to be able to run binaries linked dynamically to some
> libraries from the same project the rpath in the build directory has
> to point to the lib directory in the build directory. However, this
> brakes CPack which seems to require the
> CMAKE_BUILD_WITH_INSTALL_RPATH set on to work flawlessly.
>
> Is there any way to rewrite rpath while CPack-ing and installing? Note
> that platform independence is priority #1.

Did you read this?
http://www.cmake.org/Wiki/CMake_RPATH_handling



-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list