tools/cmake: fix compilation with host libzstd-dev
authorRosen Penev <rosenp@gmail.com>
Fri, 30 Sep 2022 08:42:51 +0000 (01:42 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 30 Sep 2022 20:12:42 +0000 (13:12 -0700)
commit0e3d51ccaedff49477f12205062a3cb0c49a96e8
treea029713bd4658a89d9a9290207a5e6b0c3c7b9e7
parent3b23227d43ec720f810e6e261945530f7bc549f0
tools/cmake: fix compilation with host libzstd-dev

cmake's find_package looks at host paths first for some reason. Switch
to using pkgconfig for the search, matching other modules.

Fixes: 3848cf458ef9 ("tools/cmake: Build without some included libs")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
tools/cmake/patches/150-zstd-libarchive.patch [new file with mode: 0644]