Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/SetupRdKafka.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if(NOT USERVER_FORCE_DOWNLOAD_PACKAGES)
OpenSSL::SSL
OpenSSL::Crypto
SASL2::SASL2
zstd::zstd
zstd::libzstd
)
return()
endif()
Expand Down
4 changes: 4 additions & 0 deletions cmake/modules/Findyaml-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ _userver_module_find_include(NAMES yaml-cpp/yaml.h yaml-cpp/node.h PATH_SUFFIXES
_userver_module_find_library(NAMES yaml-cpp PATH_SUFFIXES lib)

_userver_module_end()

if(NOT TARGET yaml-cpp::yaml-cpp)
add_library(yaml-cpp::yaml-cpp ALIAS yaml-cpp)
endif()
6 changes: 3 additions & 3 deletions cmake/modules/Findzstd.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ _userver_module_find_library(NAMES zstd PATH_SUFFIXES lib)

_userver_module_end()

if(NOT TARGET zstd::zstd)
if(NOT TARGET zstd::libzstd)
if(TARGET libzstd_static)
add_library(zstd::zstd ALIAS libzstd_static)
add_library(zstd::libzstd ALIAS libzstd_static)
else()
add_library(zstd::zstd ALIAS zstd)
add_library(zstd::libzstd ALIAS zstd)
endif()
endif()
if(NOT TARGET ZSTD::ZSTD)
Expand Down
2 changes: 1 addition & 1 deletion universal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ else()
target_link_libraries(
${PROJECT_NAME}
PUBLIC fmt cctz userver-stacktrace
PRIVATE yaml-cpp zstd::zstd cryptopp::cryptopp
PRIVATE yaml-cpp::yaml-cpp zstd::libzstd cryptopp::cryptopp
)

if(CMAKE_SYSTEM_NAME MATCHES "Darwin"
Expand Down
Loading