tpaviot / oce

OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
http://groups.google.com/group/oce-dev
GNU Lesser General Public License v2.1
811 stars 284 forks source link

set RPATH or install name for all installed libs? #610

Closed davydden closed 8 years ago

davydden commented 8 years ago

i would like to install OCE on Darwin in custom location and use it without setting DYLD_LIBRARY_PATH. My understanding is that one of these solutions would do it: (i) all libs have install names as full path: (/path/to/oce/lib/libABC.dylib) instead of libABC.dylib (ii) or there is RPATH set.

Is there any -DOCE_XYZ CMake flag that would help to achieve this?

jf--- commented 8 years ago

hi @davydden ,

IIRC there's a difference in how .dylib's are built with cmake 3.x.x and 2.8.x Are you on a recent version of cmake?

davydden commented 8 years ago

@jf--- yes, I am on 3.xx.

davydden commented 8 years ago

nevermind, i ended up using a python script with install_name tool on OSX.