--- a/cmake/SearchForStuff.cmake
+++ b/cmake/SearchForStuff.cmake
@@ -181,2 +181,3 @@
-add_subdirectory(3rdparty/zstd EXCLUDE_FROM_ALL)
-add_subdirectory(3rdparty/libzip EXCLUDE_FROM_ALL)
+pkg_check_modules(zstd REQUIRED IMPORTED_TARGET libzstd)
+alias_library(Zstd::Zstd PkgConfig::zstd)
+find_package(libzip REQUIRED)
