[CMake] RPATH and $ORIGIN

James Bigler bigler at cs.utah.edu
Wed Jan 16 17:18:02 EST 2008


Iker Arizmendi wrote:
> I've run into some trouble with how CMake 2.4.2 (and perhaps
> later) handles the string "$ORIGIN" when it appears as part of
> an RPATH. I've gotten around the trouble (see below), but would
> appreciate any pointers on the correct way to use "$ORIGIN".
...
>    SET(CMAKE_INSTALL_RPATH
>        "${CMAKE_INSTALL_RPATH}:$ORIGIN/../xxx")

CMake expands variables with curly braces.  Try ${ORIGIN} instead of $ORIGIN and see if that helps.

James


More information about the CMake mailing list