Re: [CMake] Using MPI and non-MPI compiler in the same cmake project?

2012-06-26 Thread Tim Gallagher
variable once it's been set by CMake. Tim - Original Message - From: Eli Ateljevich e...@water.ca.gov To: cmake@cmake.org Sent: Monday, June 25, 2012 10:43:03 PM Subject: [CMake] Using MPI and non-MPI compiler in the same cmake project? Hi all, My project is mostly built with Fortran

Re: [CMake] Using MPI and non-MPI compiler in the same cmake project?

2012-06-26 Thread Ateljevich, Eli
instead and not even call find_package(MPI). You don't want to change the compiler variable once it's been set by CMake. Tim - Original Message - From: Eli Ateljevich e...@water.ca.gov To: cmake@cmake.org Sent: Monday, June 25, 2012 10:43:03 PM Subject: [CMake] Using MPI and non-MPI

[CMake] Using MPI and non-MPI compiler in the same cmake project?

2012-06-25 Thread Ateljevich, Eli
Hi all, My project is mostly built with Fortran that uses mpif90 as a wrapper. I use find_package(MPI REQUIRED) to locate f90mpi and then change set the CMAKE_Fortran_COMPILER to ${MPI_Fortran_COMPILER}. This seemed to work fine until started wrapping up some utilities that do not need to be