summaryrefslogtreecommitdiff
path: root/cmake/modules/ClangConfig.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/ClangConfig.cmake.in')
-rw-r--r--cmake/modules/ClangConfig.cmake.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/modules/ClangConfig.cmake.in b/cmake/modules/ClangConfig.cmake.in
new file mode 100644
index 0000000000000..a946944dd9915
--- /dev/null
+++ b/cmake/modules/ClangConfig.cmake.in
@@ -0,0 +1,11 @@
+# This file allows users to call find_package(Clang) and pick up our targets.
+
+find_package(LLVM REQUIRED CONFIG)
+
+@CLANG_CONFIG_CODE@
+
+set(CLANG_EXPORTED_TARGETS "@CLANG_EXPORTS@")
+set(CLANG_CMAKE_DIR "@CLANG_CONFIG_CMAKE_DIR@")
+
+# Provide all our library targets to users.
+include("@CLANG_CONFIG_EXPORTS_FILE@")