Skip to content

Conversation

@flowergom
Copy link
Contributor

In Yocto builds, zstd is built via Makefile and does not install CMake package configuration files.
As a result, Findzstd.cmake fails to detect ZSTD_INCLUDE_DIRS.
Add pkg-config based detection as a fallback to properly locate zstd headers and libraries.

fix error:
| Could NOT find zstd (missing: ZSTD_INCLUDE_DIRS)
| Call Stack (most recent call first):

Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/14308]

In Yocto builds, zstd is built via Makefile and does not install
CMake package configuration files. As a result, Findzstd.cmake
fails to detect ZSTD_INCLUDE_DIRS.

Add pkg-config based detection as a fallback to properly locate
zstd headers and libraries.

Signed-off-by: Minjae Kim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant