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 <Package>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.
This commit is contained in:
Cristian Le 2023-10-12 10:19:22 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 66f0030ea8
commit a9297c32c6

View File

@ -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@