From aac796a8bc8413de9d5b6e8d38950adc450d1982 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 3 Oct 2022 09:39:36 +0200 Subject: [PATCH] openmpi fix: otherwise embedded cmake will be screened --- products/env_scripts/openmpi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')) - -- 2.39.2