Different settings of CMAKE_INSTALL_NAME_DIR & CMAKE_INSTALL_LIBDIR => broken libraries

Mojca Miklavec mojca at macports.org
Fri Mar 25 18:08:13 PDT 2016


In Geant4 I'm using
to allow side-by-side installation of multiple versions of the software.

However the latest release broke the behaviour and the libraries now
point to a different path than where they are installed:

> otool -L /opt/local/lib/Geant4/Geant4.10.2/libG4FR.dylib

According to
this might be a side effect of
which is automatically added by the cmake PortGroup.

I will do some further testing, but I would be interested in some
deeper insight into how the system is *supposed to* work. The CMake
documentation is not too verbose:

(I cannot really decide whose fault the broken libraries are. I can
imagine that I will have to remove or fix the
-DCMAKE_INSTALL_NAME_DIR=... setting, but if there is something that
could/should be improved in Geant4 for better
support, I would like to know.)

Thank you,

More information about the macports-dev mailing list