diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-02-08 23:17:31 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-02-08 23:17:31 +0000 |
commit | dbdebe2736561e6465b81a896254442b8f91167f (patch) | |
tree | 97ff96ef02710916088ed6d5c655945724c54789 /cmake | |
parent | d31bd24b40262ff97db47804472589a89a4bcfe4 (diff) | |
download | external_llvm-dbdebe2736561e6465b81a896254442b8f91167f.zip external_llvm-dbdebe2736561e6465b81a896254442b8f91167f.tar.gz external_llvm-dbdebe2736561e6465b81a896254442b8f91167f.tar.bz2 |
CMake: Use check_symbol_exists instead of check_cxx_symbol_exists.
check_cxx_symbol_exists requires CMake 2.8.6, so even though I
recommended it to Owen it's probably better to stay away for now.
This check is not technically correct because we're checking <math.h>
but then using <cmath> in the actual code, but if we run into problems we
can do the same sort of dance as isinf() and isnan() where we check /both/
headers and then write a wrapper header around them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index b83c1c6..7496622 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -7,7 +7,6 @@ include(CheckIncludeFile) include(CheckLibraryExists) include(CheckSymbolExists) include(CheckFunctionExists) -include(CheckCXXSymbolExists) include(CheckCXXSourceCompiles) include(TestBigEndian) @@ -120,12 +119,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_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) +check_symbol_exists(log math.h HAVE_LOG) +check_symbol_exists(log2 math.h HAVE_LOG2) +check_symbol_exists(log10 math.h HAVE_LOG10) +check_symbol_exists(exp math.h HAVE_EXP) +check_symbol_exists(exp2 math.h HAVE_EXP2) +check_symbol_exists(exp10 math.h HAVE_EXP10) if( HAVE_SETJMP_H ) check_symbol_exists(longjmp setjmp.h HAVE_LONGJMP) check_symbol_exists(setjmp setjmp.h HAVE_SETJMP) |