From 1599685de63cbaa3dc1a572b64886b501b786d40 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 6 Dec 2022 18:10:12 +0100 Subject: [PATCH] spns #32377: cgns detection - ensure that gmsh picks up the right library --- products/compil_scripts/gmsh-4.10.3.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/products/compil_scripts/gmsh-4.10.3.sh b/products/compil_scripts/gmsh-4.10.3.sh index 4dcc6c0..bef11b9 100755 --- a/products/compil_scripts/gmsh-4.10.3.sh +++ b/products/compil_scripts/gmsh-4.10.3.sh @@ -27,6 +27,12 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PRIVATE_API=ON" if [ -n "$CGNS_ROOT_DIR" ]; then # GMSH relies on the presence of this environment variable. export CGNS_ROOT=$CGNS_ROOT_DIR + if [ "${SAT_cgns_IS_NATIVE}" != "1" ]; then + # ensure that we are picking up the correct CGNS library + # e.g. Debian 10, cgns is centrally installed, CGNS_LIB will not target the embedded CGNS + # which will lead to compilation issue. + export LD_LIBRARY_PATH=$CGNS_ROOT/lib:$LD_LIBRARY_PATH + fi CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_CGNS=ON" else CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_CGNS=OFF" -- 2.39.2