summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/cmake/modules/ClangConfig.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/cmake/modules/ClangConfig.cmake b/clang/cmake/modules/ClangConfig.cmake
index f052bb9e8c8..d30a277d222 100644
--- a/clang/cmake/modules/ClangConfig.cmake
+++ b/clang/cmake/modules/ClangConfig.cmake
@@ -4,5 +4,7 @@
# uses LLVM's. When it does, we should move this file to ClangConfig.cmake.in
# and call configure_file() on it.
+find_package(LLVM REQUIRED CONFIG)
+
# Provide all our library targets to users.
include("${CMAKE_CURRENT_LIST_DIR}/ClangTargets.cmake")
OpenPOWER on IntegriCloud