cmake: Don't install zstd_seekable and use header from externals (#1305)

* Use zstd_seekable header from externals

Specifying the full path relies on the system installed header.

Signed-off-by: Marcin Serwin <marcin@serwin.dev>

* Don't install zstd_seekable

Signed-off-by: Marcin Serwin <marcin@serwin.dev>

---------

Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
Marcin Serwin 2025-12-06 18:59:32 +01:00 committed by GitHub
parent aac54d648c
commit 254ab96b63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 8 deletions

View File

@ -243,13 +243,8 @@ else()
) )
target_link_libraries(zstd_seekable PUBLIC libzstd_static) target_link_libraries(zstd_seekable PUBLIC libzstd_static)
target_link_libraries(libzstd_static INTERFACE zstd_seekable) add_library(zstd INTERFACE)
target_link_libraries(zstd INTERFACE libzstd_static zstd_seekable)
add_library(zstd ALIAS libzstd_static)
install(TARGETS zstd_seekable
EXPORT zstdExports
)
endif() endif()
# ENet # ENet

View File

@ -13,7 +13,7 @@
#include <mutex> #include <mutex>
#include <sstream> #include <sstream>
#include <zstd.h> #include <zstd.h>
#include <zstd/contrib/seekable_format/zstd_seekable.h> #include <zstd_seekable.h>
#include <boost/serialization/base_object.hpp> #include <boost/serialization/base_object.hpp>
#include <boost/serialization/unique_ptr.hpp> #include <boost/serialization/unique_ptr.hpp>