Reid Kleckner | ed8bca4 | 2014-11-05 23:14:59 +0000 | [diff] [blame] | 1 | # 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 Kleckner | a2550e6 | 2016-02-19 00:56:56 +0000 | [diff] [blame] | 7 | find_package(LLVM REQUIRED CONFIG) |
| 8 | |
Michael Gottesman | 497e97f | 2016-06-29 21:59:19 +0000 | [diff] [blame^] | 9 | @CLANG_CONFIG_CODE@ |
| 10 | |
| 11 | set(CLANG_CMAKE_DIR "@CLANG_CONFIG_CMAKE_DIR@") |
| 12 | |
Reid Kleckner | ed8bca4 | 2014-11-05 23:14:59 +0000 | [diff] [blame] | 13 | # Provide all our library targets to users. |
Michael Gottesman | 497e97f | 2016-06-29 21:59:19 +0000 | [diff] [blame^] | 14 | include("@CLANG_CONFIG_EXPORTS_FILE@") |