[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
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b66339575a9b541e67ce5ad2ba7e88da07cf9305
https://github.com/llvm/llvm-project/commit/b66339575a9b541e67ce5ad2ba7e88da07cf9305
Author: Jack Andersen <jackoalan at gmail.com>
Date: 2021-12-05 (Sun, 05 Dec 2021)
Changed paths:
M llvm/cmake/config-ix.cmake
A llvm/cmake/modules/FindFFI.cmake
A llvm/cmake/modules/FindTerminfo.cmake
M llvm/cmake/modules/LLVMConfig.cmake.in
M llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt
M llvm/lib/Support/CMakeLists.txt
Log Message:
-----------
[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
mailing list