[CMake] Shared libraries cannot be found after deploying a CPack package
Hendrik Sattler
post at hendrik-sattler.de
Thu Jul 16 04:28:28 EDT 2009
Zitat von Michael Wild <themiwi at gmail.com>:
>> Setting CMAKE_INSTALL_RPATH to "$ORIGIN/../lib/mcrl2" solves the
>> problem, as the binaries are located in "${CMAKE_INSTALL_PREFIX}/bin/mcrl2".
>>
>
> On Mac you can set the INSTALL_NAME_DIR property (or the
> CMAKE_INSTALL_NAME_DIR variable) to something starting with
> @executable_path, to the same effect as above.
So maybe the proper value can be made available as variable? Or direct
support in cmake with some boolean variable?
Like:
CMAKE_RELATIVE_RPATH_SUPPORTED true/false
CMAKE_RELATIVE_RPATH_PREFIX:
Linux: "$ORIGIN"
MacOS: "@executable_path"
Anything else?
HS
More information about the CMake
mailing list