BUILD(cmake): Find and link Poco::XML

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'
This commit is contained in:
Carl George 2022-04-05 18:49:13 -05:00
parent aa62d87fea
commit fefdd79ebc

View File

@ -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()