[CMake] Include ZLIB_ROOT in LLVMConfig.cmake
authorJake Egan <Jake.Egan@ibm.com>
Thu, 6 Jan 2022 16:22:09 +0000 (11:22 -0500)
committerJake Egan <jakeegan10@gmail.com>
Thu, 6 Jan 2022 16:25:00 +0000 (11:25 -0500)
commite3a261831bd98bb4dc54bb861a196a7540c4747a
treee5f4c264c08421880b778d8d2bc65812ddf87ca7
parent56ca11e31e6ad4fda6476ee65537529963a2708e
[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
llvm/cmake/modules/LLVMConfig.cmake.in