Skip to content

Commit de1cee6

Browse files
authored
Fix CGAL rpath (#5393)
1 parent 9ee494c commit de1cee6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cgal.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export GMP_INC_DIR="${GMP_ROOT}/include"
3535
cmake . \
3636
-DCMAKE_INSTALL_PREFIX:PATH="${INSTALLROOT}" \
3737
-DCMAKE_INSTALL_LIBDIR:PATH="lib" \
38-
-DCMAKE_SKIP_RPATH:BOOL=YES \
3938
-DCMAKE_BUILD_TYPE=Release \
4039
-DWITH_BLAS:BOOL=OFF \
4140
-DWITH_CGAL_Core:BOOL=ON \
@@ -71,6 +70,10 @@ cmake . \
7170
make VERBOSE=1 ${JOBS:+-j$JOBS}
7271
make install VERBOSE=1
7372

73+
find $INSTALLROOT/lib/ -name "*.dylib" -exec install_name_tool -add_rpath @loader_path/../lib {} \;
74+
find $INSTALLROOT/lib/ -name "*.dylib" -exec install_name_tool -add_rpath ${INSTALLROOT}/lib {} \;
75+
find $INSTALLROOT/lib/ -name "*.dylib" -exec install_name_tool -id {} {} \;
76+
7477
# Modulefile
7578
MODULEDIR="$INSTALLROOT/etc/modulefiles"
7679
MODULEFILE="$MODULEDIR/$PKGNAME"

0 commit comments

Comments
 (0)