Merge FreeBSD patches.

Taken from:
http://svnweb.freebsd.org/ports/head/devel/simgear/files/
This commit is contained in:
James Turner
2014-11-11 22:29:24 +00:00
parent 365ddb84a7
commit 1b7f310ea6
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -276,12 +276,12 @@ 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 <cmath>
void f() { isnan(0.0);} "
int main() { return isnan(0.0);} "
HAVE_ISNAN)
check_cxx_source_compiles(
"#include <cmath>
void f() { std::isnan(0.0);} "
int main() { return std::isnan(0.0);} "
HAVE_STD_ISNAN)
if(CMAKE_COMPILER_IS_GNUCXX)