Fix CMake test for std::isnan()
It used the wrong header; std::isnan() is defined in <cmath>.
This commit is contained in:
parent
7be1fcc32e
commit
7a374c43dc
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user