Fix CMake test for std::isnan()

It used the wrong header; std::isnan() is defined in <cmath>.
This commit is contained in:
Florent Rougon 2017-10-19 10:40:17 +02:00
parent 7be1fcc32e
commit 7a374c43dc

View File

@ -343,7 +343,7 @@ SET(CMAKE_MINSIZEREL_POSTFIX "" CACHE STRING "add a postfix, usually empty on wi
# isnan might not be real symbol, so can't check using function_exists
check_cxx_source_compiles(
"#include <cstdlib>
"#include <cmath>
int main() { return std::isnan(0.0);} "
HAVE_STD_ISNAN)