
ClangConfig requires LLVMConfig, so add find_package call in ClangConfig so find_package(clang REQUIRED CONFIG) will just work. This makes it easier for cmake based projects to use clang, e.g., tools using ClangTooling. Patch by Don Hinton Differential Revision: http://reviews.llvm.org/D13622 llvm-svn: 261290
11 lines
405 B
CMake
11 lines
405 B
CMake
# This file allows users to call find_package(Clang) and pick up our targets.
|
|
|
|
# Clang doesn't have any CMake configuration settings yet because it mostly
|
|
# 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")
|