[llvm] e3a2618 - [CMake] Include ZLIB_ROOT in LLVMConfig.cmake
Jake Egan via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 6 08:25:06 PST 2022
Author: Jake Egan
Date: 2022-01-06T11:25:00-05:00
New Revision: e3a261831bd98bb4dc54bb861a196a7540c4747a
URL: https://github.com/llvm/llvm-project/commit/e3a261831bd98bb4dc54bb861a196a7540c4747a
DIFF: https://github.com/llvm/llvm-project/commit/e3a261831bd98bb4dc54bb861a196a7540c4747a.diff
LOG: [CMake] Include ZLIB_ROOT in LLVMConfig.cmake
Include the value of `ZLIB_ROOT` in `LLVMConfig.cmake` so `FindZLIB` can pick it up. This fixes an issue where ZLIB is not found on AIX runtimes despite specifying `-DZLIB_ROOT`.
Reviewed By: daltenty
Differential Revision: https://reviews.llvm.org/D116235
Added:
Modified:
llvm/cmake/modules/LLVMConfig.cmake.in
Removed:
################################################################################
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
index 425d3edfcc3a4..7d64aa6ebf0f7 100644
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
@@ -69,6 +69,7 @@ set(LLVM_ENABLE_UNWIND_TABLES @LLVM_ENABLE_UNWIND_TABLES@)
set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
if(LLVM_ENABLE_ZLIB)
+ set(ZLIB_ROOT @ZLIB_ROOT@)
find_package(ZLIB)
endif()
More information about the llvm-commits
mailing list