]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
openmpi fix: otherwise embedded cmake will be screened
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 3 Oct 2022 07:39:36 +0000 (09:39 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 3 Oct 2022 07:39:36 +0000 (09:39 +0200)
products/env_scripts/openmpi.py

index 7eb0d67b06519c7898b285779e3f19452f907bfd..862c57bb049f6d8a112e18913eb66192120fb2ae 100644 (file)
@@ -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'))
-