Improve the logic in FindZstd to support finding both shared and static
variants of the zstd library simultaneously. Otherwise, if the shared
library is installed, zstd::libzstd_static is not declared at all
and CMake fails if LLVM_USE_STATIC_ZSTD is used.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Alternative that I'd slightly prefer would be to only search for static library when LLVM_USE_STATIC_ZSTD is enabled, otherwise try both as before. That's more in line with what the other CMake modules do. I haven't found any module that would try to find both shared and static library at the same time and I'm not sure if there's a use case for it.