[all-commits] [llvm/llvm-project] b66339: [CMake] Installable find modules for terminfo and ...
Jack Andersen via All-commits
all-commits at lists.llvm.org
Sun Dec 5 11:48:20 PST 2021
Author: Jack Andersen <jackoalan at gmail.com>
Date: 2021-12-05 (Sun, 05 Dec 2021)
[CMake] Installable find modules for terminfo and libffi
Improves cross-distro portability of LLVM cmake package by resolving paths for
terminfo and libffi via import targets.
When LLVMExports.cmake is generated for installation, it contains absolute
library paths which are likely to be a common cause of portability issues. To
mitigate this, the discovery logic for these dependencies is refactored into
find modules which get installed alongside LLVMConfig.cmake. The result is
cleaner, cmake-friendly management of these dependencies that respect the
environment of the LLVM package importer.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D114327
More information about the All-commits