OK, thanks.
I noted one issue with the current FindMPI, though.
I'm using MPICH, and upon inspection of the mpicc and mpicxx scripts, I
noticed that these scripts also set a lot of -f options for GCC. These
settings are not picked up by FindMPI, as it does not search for compile
flags that start w
Well, the MPI_COMPILER variable is certainly used internally by FindMPI to
detect all the stuff. And to use MPI_LINK_FLAGS, just set them as the target
property LINK_FLAGS.
Michael
On 26. May, 2010, at 18:15 , Marcel Loose wrote:
> True, but that raises (at least) two questions:
>
> 1) What
True, but that raises (at least) two questions:
1) What's the use of the variable MPI_COMPILER if it cannot be used to
set the C/C++ compiler.
2) I know how to handle MPI_COMPILE_FLAGS - use add_definitions();
MPI_INCLUDE_PATH - use include_directories(); MPI_LIBRARIES - use
target_link_libraries
Yeah, I know that works.
But if that's the "proper" solution, then what's the use of FindMPI
anyways?
Regards,
Marcel Loose.
On Wed, 2010-05-26 at 11:53 -0400, Dave Partyka wrote:
> The way I have accomplished this is to:
>
>
> export CC=mpicc
> export CXX=mpicxx
>
>
> blow away your build t
The way I have accomplished this is to:
export CC=mpicc
export CXX=mpicxx
blow away your build tree and then re-configure re-generate
On Wed, May 26, 2010 at 11:38 AM, Michael Wild wrote:
>
> On 26. May, 2010, at 17:20 , Marcel Loose wrote:
>
> > Hi all,
> >
> > I was wondering how one should
On 26. May, 2010, at 17:20 , Marcel Loose wrote:
> Hi all,
>
> I was wondering how one should use find_package(MPI) to properly set the
> C/C++ compiler(s). Normally, you call find_package() after the project()
> command. However, by that time the CMAKE__COMPILER cache variables
> have already b
Hi all,
I was wondering how one should use find_package(MPI) to properly set the
C/C++ compiler(s). Normally, you call find_package() after the project()
command. However, by that time the CMAKE__COMPILER cache variables
have already been set. Should one FORCE these cache variables to the
value of