From 8561344f319edcabf5aa644d713cac0bb3eb7606 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Tue, 27 Oct 2020 09:27:43 +0100 Subject: [PATCH] Fixing PETSC detection for OSX --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index c4a589648..14c562cfe 100755 --- a/configure +++ b/configure @@ -5,6 +5,7 @@ # Because we moved to cmake this script emulate the configure script from autotools conf_options= +ld_lib_pathopt= # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' @@ -475,6 +476,7 @@ do ;; suitesparse) conf_options="$conf_options -DSUITESPARSE_ROOT=$ac_optarg" + ld_lib_pathopt=$ac_optarg/lib ;; eigen) conf_options="$conf_options -DEIGEN3_ROOT=$ac_optarg" @@ -564,7 +566,7 @@ cd build ## remove enerything echo "Calling cmake ../. $conf_options" rm ../error_code -cmake ../. $conf_options +DYLD_LIBRARY_PATH=$ld_lib_pathopt cmake ../. $conf_options if [ $? != 0 ]; then #ok something went wrong the install script analyze the return code to potentially fix the problem automatically # Read the error code and exit with that -- GitLab