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
391 B
CMake
14 lines
391 B
CMake
# This file allows users to call find_package(LLD) and pick up our targets.
|
|
|
|
@LLD_CONFIG_CODE@
|
|
|
|
find_package(LLVM REQUIRED CONFIG
|
|
HINTS "@LLD_CONFIG_LLVM_CMAKE_DIR@")
|
|
|
|
set(LLD_EXPORTED_TARGETS "@LLD_EXPORTS@")
|
|
set(LLD_CMAKE_DIR "@LLD_CONFIG_CMAKE_DIR@")
|
|
set(LLD_INCLUDE_DIRS "@LLD_CONFIG_INCLUDE_DIRS@")
|
|
|
|
# Provide all our library targets to users.
|
|
@LLD_CONFIG_INCLUDE_EXPORTS@
|