Skip to content

Commit

Permalink
Merge PR #5616: BUILD(cmake): Find and link Poco::XML
Browse files Browse the repository at this point in the history
Without this, building against the latest poco snapshot results in errors like:

/usr/bin/ld: /builddir/build/BUILD/mumble-1.4.230.src/src/mumble/PluginManifest.cpp:72: undefined reference to `typeinfo for Poco::XML::Element'
  • Loading branch information
Krzmbrzl authored Apr 7, 2022
2 parents aa62d87 + fefdd79 commit 73d8a4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mumble/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,16 @@ target_include_directories(mumble_client_object_lib
"${PLUGINS_DIR}"
)

find_pkg(Poco COMPONENTS Zip)
find_pkg(Poco
COMPONENTS
XML
Zip
)

if(TARGET Poco::Zip)
target_link_libraries(mumble_client_object_lib
PUBLIC
Poco::XML
Poco::Zip
)
else()
Expand Down

0 comments on commit 73d8a4d

Please sign in to comment.