diff options
author | Owen Anderson <resistor@mac.com> | 2013-02-07 00:54:05 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2013-02-07 00:54:05 +0000 |
commit | 1e8f6f4df1c8431773bf46e87b284db2b1541234 (patch) | |
tree | a19d43fc516ab74a98c036d6f0db24a742d84d36 /cmake | |
parent | ec643abe6903284fc9ae7b6d9ae5e0b4ad40ad28 (diff) |
Fix CMake detection of various cmath functions, and XFAIL the test on platforms that are known to be missing them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index f077ecaf57..b83c1c67b2 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -7,6 +7,7 @@ include(CheckIncludeFile) include(CheckLibraryExists) include(CheckSymbolExists) include(CheckFunctionExists) +include(CheckCXXSymbolExists) include(CheckCXXSourceCompiles) include(TestBigEndian) @@ -119,12 +120,12 @@ check_symbol_exists(isnan math.h HAVE_ISNAN_IN_MATH_H) check_symbol_exists(ceilf math.h HAVE_CEILF) check_symbol_exists(floorf math.h HAVE_FLOORF) check_symbol_exists(fmodf math.h HAVE_FMODF) -check_symbol_exists(log "math.h cmath" HAVE_LOG) -check_symbol_exists(log2 "math.h cmath" HAVE_LOG2) -check_symbol_exists(log10 "math.h cmath" HAVE_LOG10) -check_symbol_exists(exp "math.h cmath" HAVE_EXP) -check_symbol_exists(exp2 "math.h cmath" HAVE_EXP2) -check_symbol_exists(exp10 "math.h cmath" HAVE_EXP10) +check_cxx_symbol_exists(log cmath HAVE_LOG) +check_cxx_symbol_exists(log2 cmath HAVE_LOG2) +check_cxx_symbol_exists(log10 cmath HAVE_LOG10) +check_cxx_symbol_exists(exp cmath HAVE_EXP) +check_cxx_symbol_exists(exp2 cmath HAVE_EXP2) +check_cxx_symbol_exists(exp10 cmath HAVE_EXP10) if( HAVE_SETJMP_H ) check_symbol_exists(longjmp setjmp.h HAVE_LONGJMP) check_symbol_exists(setjmp setjmp.h HAVE_SETJMP) |