From 55a643e94a1b811390b7bf9161339744734b3491 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 8 Mar 2016 18:56:00 +0000 Subject: [PATCH] cmake: include what you use 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 --- cmake/modules/CheckCompilerVersion.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/modules/CheckCompilerVersion.cmake b/cmake/modules/CheckCompilerVersion.cmake index e72f24cf8f1..08900a4599e 100644 --- a/cmake/modules/CheckCompilerVersion.cmake +++ b/cmake/modules/CheckCompilerVersion.cmake @@ -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)