6d08ed7 Added CMAKE_PREFIX_PATH to the module file

1 file Authored by Cristian Le 4 months ago, Committed by zbyszek 4 months ago,
    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.
    
    (cherry picked from commit a9297c32c665a5c9fe53100a78135b290a8bbb2f)