Fix CMake modules for finding external libraries#2240
Fix CMake modules for finding external libraries#2240lahwaacz wants to merge 1 commit intoapache:mainfrom
Conversation
- allow finding header files in default paths - this is consistent with
the logic for finding the library files
- replace undefined variables ${SNAPPY_LIB_NAME} and ${LZ4_LIB_NAME}
with the actual names
|
cc @wgtmac |
|
Thanks for creating this PR!
Could you elaborate this? I was thinking to remove these obsolete |
Try to build the latest orc version and then arrow using the following cmake options (notice especially
The "config mode" is still looking for some |
|
I think lz4 and zlib have exported their packages to be used by config mode: |
|
But if you install lz4 using a different build system (e.g. Arch Linux uses meson), the CMake integration files are not installed. |
What changes were proposed in this pull request?
${SNAPPY_LIB_NAME}and${LZ4_LIB_NAME}with the actual namesWhy are the changes needed?
The CMake modules are broken. Building anything that depends on orc using cmake (e.g. Apache Arrow) does not work.
How was this patch tested?
Better than the original files 😏
Was this patch authored or co-authored using generative AI tooling?
No