On Mon, Oct 4, 2010 at 12:00, Brian J. Murrell <brian.murr...@oracle.com> wrote:
> Check the archives on this. Will do. I had a very brief look but couldn't find much, I'll have a more detailed look. >> In one of our projects we have one code that can be built using >> ${MPICC} (if it is available), but not other codes. How can I specify >> to use ${MPICC} for one code, but ${CC} for the others. > > You can't, or so I have come to understand. > >> So I guess I'm asking how to build one code using a different compiler >> than the others? > > What I did was created a subdir in the dir where I wanted to use the > mpicc (and gcc) compilers and changed the CC in the subdir's Makefile.am > and then set the sources to build from the parent directory. OK thanks, I'll have to make sure that the MPI codes are split off into a separate sub-directory then. Cheers Adam