cmake: include what you use
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Mar 2016 18:56:00 +0000 (18:56 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Mar 2016 18:56:00 +0000 (18:56 +0000)
Add a missing include.  This is important in the case HandleLLVMOptions is
included prior to the missing CheckCXXSourceCompiles or CheckCXXCompilerFlag
which includes CheckCXXSourceCompiles.

llvm-svn: 262949

llvm/cmake/modules/CheckCompilerVersion.cmake

index e72f24c..08900a4 100644 (file)
@@ -1,6 +1,8 @@
 # Check if the host compiler is new enough. LLVM requires at least GCC 4.7,
 # MSVC 2013, or Clang 3.1.
 
+include(CheckCXXSourceCompiles)
+
 if(NOT DEFINED LLVM_COMPILER_CHECKED)
   set(LLVM_COMPILER_CHECKED ON)