summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-03-08 18:56:00 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-03-08 18:56:00 +0000
commit2d5e95c00d84856859f673539b608844cd8a69b2 (patch)
tree0e26ff6a4d8b7235e47971bfe17815853bcd0992 /llvm/cmake/modules
parent74c98f0e8d4cbebe925f134839faef60d436e1e7 (diff)
downloadbcm5719-llvm-2d5e95c00d84856859f673539b608844cd8a69b2.tar.gz
bcm5719-llvm-2d5e95c00d84856859f673539b608844cd8a69b2.zip
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
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/CheckCompilerVersion.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/cmake/modules/CheckCompilerVersion.cmake b/llvm/cmake/modules/CheckCompilerVersion.cmake
index e72f24cf8f1..08900a4599e 100644
--- a/llvm/cmake/modules/CheckCompilerVersion.cmake
+++ b/llvm/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)
OpenPOWER on IntegriCloud