Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
On 8/01/2011 1:53 AM, Michael Wild wrote: On 01/07/2011 03:26 PM, Mark Abraham wrote: It appears that FindMPI.cmake works fine, but then the CMake macro CHECK_C_SOURCE_COMPILES seems to fail its "check variable name for sanity" test. I can conceive of no reason for this happening. What have I do

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Michael Wild
On 01/07/2011 03:26 PM, Mark Abraham wrote: > On 7/01/2011 11:17 PM, Michael Wild wrote: >> On 01/07/2011 11:36 AM, Mark Abraham wrote: >>> Hi, >>> >>> When using MPI, our project needs to be able to test for the validity of >>> MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
On 7/01/2011 11:17 PM, Michael Wild wrote: On 01/07/2011 11:36 AM, Mark Abraham wrote: Hi, When using MPI, our project needs to be able to test for the validity of MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could use try_compile to compile a simple test program, however we

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Michael Wild
On 01/07/2011 11:36 AM, Mark Abraham wrote: > Hi, > > When using MPI, our project needs to be able to test for the validity of > MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could > use try_compile to compile a simple test program, however we need to be > able to direct the use

[CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
Hi, When using MPI, our project needs to be able to test for the validity of MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could use try_compile to compile a simple test program, however we need to be able to direct the use of the compiler information CMake found using the