[CMake] MPI Module

Alexander Neundorf a.neundorf-work at gmx.net
Mon Sep 8 17:50:47 EDT 2008


On Monday 08 September 2008, Robert Kubrick wrote:
> I see. So you mean removing the cache files everytime I change the
> CXX variable?
> That works as far as I only use mpicxx, but if I want to run a
> profiled version of my program I should be able to set a variable to
> switch to mpicxx -mpe=mpianim without regenerating the Makefiles.

This is not possible. One build tree is fixed to one compiler (otherwise e.g. 
all the try-compile tests can be wrong). 
If you need different compilers, I'd suggest to create separate build trees 
for each one of them.

Alex


More information about the CMake mailing list