blob: 38c6c03a1c96f80304bd7996e73af49002fde70d [file] [log] [blame]
Reid Klecknered8bca42014-11-05 23:14:59 +00001# This file allows users to call find_package(Clang) and pick up our targets.
2
3# Clang doesn't have any CMake configuration settings yet because it mostly
4# uses LLVM's. When it does, we should move this file to ClangConfig.cmake.in
5# and call configure_file() on it.
6
Reid Klecknera2550e62016-02-19 00:56:56 +00007find_package(LLVM REQUIRED CONFIG)
8
Michael Gottesman497e97f2016-06-29 21:59:19 +00009@CLANG_CONFIG_CODE@
10
Michael Gottesman5ba52702016-06-29 21:59:23 +000011set(CLANG_EXPORTED_TARGETS "@CLANG_EXPORTS@")
Michael Gottesman497e97f2016-06-29 21:59:19 +000012set(CLANG_CMAKE_DIR "@CLANG_CONFIG_CMAKE_DIR@")
13
Reid Klecknered8bca42014-11-05 23:14:59 +000014# Provide all our library targets to users.
Michael Gottesman497e97f2016-06-29 21:59:19 +000015include("@CLANG_CONFIG_EXPORTS_FILE@")