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
808 stars 284 forks source link

Build oce on MacOsX and RPATH #726

Open vacary opened 4 years ago

vacary commented 4 years ago

I built oce-0.18.1 on MacOsX 10.14.6 without any problem. I installed into a user defines directory using -DOCE_INSTALL_PREFIX=~/.local

When I want to load it into an executable, the library is not found and it seems that the RPATH is not correctly set in the oce libraries.

I tried many CMAKE options to try to set it, but it doesn't work. I also obverse that install_name_tool is never called.

Is there a solution to easily set the rpath ? Thanks

hannesweisbach commented 3 years ago

A stab in the dark: Have you tried compiling with -DCMAKE_POLICY_DEFAULT_CMP0068=NEW?