Skip to content

Commit

Permalink
feat conan: fixes for CMake config files reusage
Browse files Browse the repository at this point in the history
Tests: протестировано локально
commit_hash:6bc4d1bc64dfe05268f75a37ee3c46c6a9e7f44b
  • Loading branch information
apolukhin committed Dec 27, 2024
1 parent a773d10 commit 3dfd60d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions kafka/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ if(USERVER_CONAN)
find_package(RdKafka REQUIRED CONFIG)
set_target_properties(RdKafka::rdkafka PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(RdKafka ALIAS RdKafka::rdkafka)

find_package(cyrus-sasl REQUIRED CONFIG)
add_library(sasl2 ALIAS cyrus-sasl::cyrus-sasl)
else()
include(SetupRdKafka)
endif()
Expand Down
2 changes: 1 addition & 1 deletion mongo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (USERVER_CONAN)
set_target_properties(mongo::mongoc_static PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(bson ALIAS mongo::bson_static)
add_library(mongoc ALIAS mongo::mongoc_static)
find_package(cyrus-sasl REQUIRED)
find_package(cyrus-sasl REQUIRED CONFIG)
else()
find_package(bson REQUIRED)
find_package(mongoc REQUIRED)
Expand Down

0 comments on commit 3dfd60d

Please sign in to comment.