Don't use check_library for libm
authorRoland Schulz <roland@utk.edu>
Sat, 27 Jun 2015 22:23:50 +0000 (18:23 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 28 Jun 2015 03:59:23 +0000 (05:59 +0200)
commit6cfbcb77fa2ab94d42e61b6a95c31f8c281e90cd
tree5e452e1eb98c74a169645feb2f5e2ec3e0504800
parent301edb905b2c69d52f791284f569b09084e01a30
Don't use check_library for libm

Using check_library doesn't work with build-ins like sqrt
with Werror. sqrt was anyhow only a placeholder for a standard
libm function. We really only need to know whether the library
exists.

Fixes #1750

Change-Id: I6a550cf8c8b8ea985b28130a4339935fb8c9741a
CMakeLists.txt