From a9297c32c665a5c9fe53100a78135b290a8bbb2f Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Thu, 12 Oct 2023 10:19:22 +0200 Subject: [PATCH] Added CMAKE_PREFIX_PATH to the module file ... to unsure that CMake projects find the available MPI enabled packages, libraries, executables, etc. The motivation is that CMake projects will search first in the CMAKE_PREFIX_PATH, both for cmake specific files like Config.cmake as well as libraries and header files in general. Adding this variable is crucial to making sure that the MPI versions take precedence over the serial versions. --- 0004-Make-mpich.module-useful.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/0004-Make-mpich.module-useful.patch b/0004-Make-mpich.module-useful.patch index 2d5d1ea..ac2a39d 100644 --- a/0004-Make-mpich.module-useful.patch +++ b/0004-Make-mpich.module-useful.patch @@ -42,3 +42,4 @@ index 3d6b4fa623..b8283274ee 100644 +prepend-path LD_LIBRARY_PATH @libdir@ +prepend-path MANPATH :@mandir@ +prepend-path PKG_CONFIG_PATH @LIBDIR@/lib/pkgconfig ++prepend-path CMAKE_PREFIX_PATH @LIBDIR@