From: Nabil Ghodbane Date: Mon, 3 Oct 2022 07:39:36 +0000 (+0200) Subject: openmpi fix: otherwise embedded cmake will be screened X-Git-Tag: V9_11_0~277 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aac796a8bc8413de9d5b6e8d38950adc450d1982;p=tools%2Fsat_salome.git openmpi fix: otherwise embedded cmake will be screened --- diff --git a/products/env_scripts/openmpi.py b/products/env_scripts/openmpi.py index 7eb0d67..862c57b 100644 --- a/products/env_scripts/openmpi.py +++ b/products/env_scripts/openmpi.py @@ -46,6 +46,6 @@ def set_nativ_env(env): env.set('MPI_CXX_COMPILER', os.path.join(prereq_bin,'mpicxx')) env.set('MPI_C_FOUND', os.path.join(prereq_dir,'lib','libmpi.so')) env.set('MPI_INCLUDE_DIR', prereq_inc) - env.prepend('PATH', prereq_bin) + if prereq_bin != "/usr/bin": + env.prepend('PATH', prereq_bin) env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir,'lib')) -