Handle isnan at a more central place.

Do not distribute architecture specific
code across a lot of places.
This commit is contained in:
Mathias Froehlich
2012-09-27 18:44:14 +02:00
parent fcd1733787
commit 7bcf02a0b4
4 changed files with 10 additions and 7 deletions
+5
View File
@@ -232,6 +232,11 @@ check_cxx_source_compiles(
void f() { isnan(0.0);} "
HAVE_ISNAN)
check_cxx_source_compiles(
"#include <cmath>
void f() { std::isnan(0.0);} "
HAVE_STD_ISNAN)
if(CMAKE_COMPILER_IS_GNUCXX)
set(WARNING_FLAGS_CXX "-Wall")
set(WARNING_FLAGS_C "-Wall")