llvm-capstone/lld/cmake/modules/LLDConfig.cmake.in
Matt Arsenault 2b2a961309 lld: Let find_package(LLD) work
Install a cmake config file. Copied exactly from how clang exports.

I also wasn't sure whether the canonical capitalization is "lld" or
"LLD". The project() is still calling this lld, but most places seemed
to capitalize it.
2020-05-14 09:59:53 -04:00

14 lines
399 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.
include("@LLD_CONFIG_EXPORTS_FILE@")