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

Szilárd Páll szilard.pall at cbr.su.se
Tue Nov 2 18:03:52 EDT 2010


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.

Cheers,
--
Szilárd


More information about the CMake mailing list