56f7e5a822
LLVM's build system contains support for configuring a distribution, but it can often be useful to be able to configure multiple distributions (e.g. if you want separate distributions for the tools and the libraries). Add this support to the build system, along with documentation and usage examples. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D89177
14 lines
411 B
CMake
14 lines
411 B
CMake
# This file allows users to call find_package(Flang) and pick up our targets.
|
|
|
|
@FLANG_CONFIG_CODE@
|
|
|
|
find_package(LLVM REQUIRED CONFIG
|
|
HINTS "@FLANG_CONFIG_LLVM_CMAKE_DIR@")
|
|
|
|
set(FLANG_EXPORTED_TARGETS "@FLANG_EXPORTS@")
|
|
set(FLANG_CMAKE_DIR "@FLANG_CONFIG_CMAKE_DIR@")
|
|
set(FLANG_INCLUDE_DIRS "@FLANG_CONFIG_INCLUDE_DIRS@")
|
|
|
|
# Provide all our library targets to users.
|
|
@FLANG_CONFIG_INCLUDE_EXPORTS@
|