[llvm] r181019 - CMake: cxxabi.h is only available to C++ compilers, use the right check macro.

Benjamin Kramer benny.kra at googlemail.com
Fri May 3 07:48:29 PDT 2013


Author: d0k
Date: Fri May  3 09:48:29 2013
New Revision: 181019

URL: http://llvm.org/viewvc/llvm-project?rev=181019&view=rev
Log:
CMake: cxxabi.h is only available to C++ compilers, use the right check macro.

Modified:
    llvm/trunk/cmake/config-ix.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=181019&r1=181018&r2=181019&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Fri May  3 09:48:29 2013
@@ -4,6 +4,7 @@ if( WIN32 AND NOT CYGWIN )
 endif()
 
 include(CheckIncludeFile)
+include(CheckIncludeFileCXX)
 include(CheckLibraryExists)
 include(CheckSymbolExists)
 include(CheckFunctionExists)
@@ -37,7 +38,7 @@ endfunction()
 check_include_file(argz.h HAVE_ARGZ_H)
 check_include_file(assert.h HAVE_ASSERT_H)
 check_include_file(ctype.h HAVE_CTYPE_H)
-check_include_file(cxxabi.h HAVE_CXXABI_H)
+check_include_file_cxx(cxxabi.h HAVE_CXXABI_H)
 check_include_file(dirent.h HAVE_DIRENT_H)
 check_include_file(dl.h HAVE_DL_H)
 check_include_file(dld.h HAVE_DLD_H)





More information about the llvm-commits mailing list