Skip to content

Commit

Permalink
Try fiz link with zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
fdr400 committed Jan 7, 2025
1 parent a3b6815 commit 7f2f087
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 16 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-conan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
grpc_service \
hello_service \
postgres_service \
kafka_service \
redis_service \
s3api \
; do
Expand Down
3 changes: 2 additions & 1 deletion clickhouse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ userver_module(clickhouse
DBTEST_DATABASES clickhouse
)

target_compile_options(${PROJECT_NAME} PUBLIC -Wno-pedantic)
target_compile_options(${PROJECT_NAME} PUBLIC "-Wno-error=pedantic")


_userver_directory_install(COMPONENT clickhouse FILES
"${USERVER_ROOT_DIR}/cmake/modules/Findclickhouse-cpp.cmake"
Expand Down
3 changes: 0 additions & 3 deletions cmake/SetupAbseil.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,3 @@ CPMAddPackage(

mark_targets_as_system("${abseil-cpp_SOURCE_DIR}")
write_package_stub(absl)
if(TARGET absl_int128)
target_compile_options(absl_int128 PUBLIC -Wno-pedantic)
endif()
1 change: 0 additions & 1 deletion cmake/SetupClickhouseCPP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ CPMAddPackage(
)

add_library(clickhouse-cpp ALIAS clickhouse-cpp-lib)
target_compile_options(clickhouse-cpp-lib PUBLIC -Wno-pedantic)
1 change: 1 addition & 0 deletions cmake/modules/Findlibzstd.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ _userver_module_end()
if(CMAKE_SYSTEM_NAME MATCHES "Darwin" AND NOT TARGET zstd)
add_library(zstd ALIAS libzstd)
endif()
add_library(zstd::zstd ALIAS libzstd)
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def requirements(self):
transitive_libs=True,
)
if self.options.with_kafka:
self.requires('librdkafka/2.6.0')
self.requires('librdkafka/2.6.1')
if self.options.with_s3api:
self.requires('pugixml/1.14')

Expand Down
4 changes: 2 additions & 2 deletions kafka/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ else()
include(SetupRdKafka)
target_link_libraries(RdKafka
INTERFACE
ZLIB::ZLIB libzstd
ZLIB::ZLIB
lz4::lz4 CURL::libcurl
OpenSSL::SSL OpenSSL::Crypto
SASL2::SASL2
SASL2::SASL2 zstd::zstd
)
endif()

Expand Down
8 changes: 1 addition & 7 deletions universal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,8 @@ if (USERVER_CONAN)
yaml-cpp
cryptopp::cryptopp
rapidjson
zstd::libzstd_static
)
# According to https://conan.io/center/recipes/zstd should be
# zstd::libzstd_static, but it does not work that way
if (TARGET zstd::libzstd_static)
target_link_libraries(${PROJECT_NAME} PRIVATE zstd::libzstd_static)
else()
target_link_libraries(${PROJECT_NAME} PRIVATE zstd::libzstd_shared)
endif()
else()
include(Stacktrace)
_make_stacktrace_target(userver-stacktrace "${Boost_VERSION_STRING}")
Expand Down

0 comments on commit 7f2f087

Please sign in to comment.