Skip to content

Commit

Permalink
Make DB code dependency on OpenSSL explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Jan 1, 2024
1 parent 28acdc8 commit 80c18a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/database/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ target_link_libraries(mumble_database PUBLIC ${soci_components})

# Note that it is SOCI that requires the public Boost dependency, but unfortunately seems to fail to properly
# declare so and thus linking against SOCI does not reveal this Boost dependency to upstream dependends.
# Same happens for an indirect depenency on OpenSSL through (at least) the MySQL backend
find_pkg("Boost" REQUIRED)
target_link_libraries(mumble_database PUBLIC Boost::boost)
find_pkg("OpenSSL" COMPONENTS SSL REQUIRED)
target_link_libraries(mumble_database PUBLIC Boost::boost OpenSSL::SSL)


if (NOT TARGET nlohmann_json)
Expand Down

0 comments on commit 80c18a6

Please sign in to comment.