CMake issue: binary (needed during build) links againts /opt/local/lib/foo.dylib

Clemens Lang cal at macports.org
Fri Sep 30 01:35:17 PDT 2016


Hi Mojca,

----- On 30 Sep, 2016, at 03:30, Mojca Miklavec mojca at macports.org wrote:

> Does anyone with a deeper understanding of CMake build system have any
> idea what to fix?

CMake should get this right automatically. You've already been pointed to
 https://cmake.org/Wiki/CMake_RPATH_handling

Try changing
 - CMAKE_BUILD_WITH_INSTALL_RPATH (it should be false),
 - CMAKE_SKIP_BUILD_RPATH (should be false) and
 - CMAKE_INSTALL_RPATH_USE_LINK_PATH (try both?)


HTH,
-- 
Clemens Lang


More information about the macports-dev mailing list