Fix usage of CMAKE_REQUIRED_*
authorRoland Schulz <roland@utk.edu>
Fri, 19 Oct 2012 02:14:20 +0000 (22:14 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 26 Oct 2012 19:41:19 +0000 (21:41 +0200)
commitec0139038018573e32eb78ba6305143c5569b2a6
tree38f25460ed07685183f1c6585851bf55dda3025e
parent2f0061d293e443e888c69d7a10e2ecb9d4552169
Fix usage of CMAKE_REQUIRED_*

Always reset all variables.
Only require libm if it is avaiable (only on Unix)

Also prefer usage of _finite. ICC on Windows gives warnings
for isfinite (we don't inlude mathimf.h).

Fixes #998

Change-Id: Ib7c064aaf6d26d2ab96f5e88345091a2eb096998
cmake/FindFFTW.cmake
cmake/ThreadMPI.cmake
cmake/gmxTestIsfinite.cmake
cmake/gmxTestMPI_IN_PLACE.cmake
cmake/gmxTestdlopen.cmake
src/gmxlib/maths.c