[CMake] How to make a shared library to use relative paths to the executable

Alexander Neundorf a.neundorf-work at gmx.net
Thu Dec 8 15:11:04 EST 2011


On Wednesday 07 December 2011, Renato Utsch wrote:
> >I  think it's $ORIGIN, not @ORIGIN.
> >
> >Alex
> 
> This works with WIN files too?

Do you mean under Windows ?
No, there is no RPATH or installname_dir there.
IIRC, under Windows, it first checks in the same directory as the executable, 
and then in the directories contained in the PATH environment variable.

Alex




More information about the CMake mailing list