Skip to content

Commit

Permalink
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'

(cherry picked from commit fefdd79)

# Conflicts:
#	src/mumble/CMakeLists.txt
  • Loading branch information
carlwgeorge authored and Krzmbrzl committed Apr 7, 2022
1 parent 10b5377 commit 5e09624
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 @@ -384,11 +384,16 @@ target_include_directories(mumble
"${PLUGINS_DIR}"
)

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

if(TARGET Poco::Zip)
target_link_libraries(mumble
PRIVATE
Poco::XML
Poco::Zip
)
else()
Expand Down

0 comments on commit 5e09624

Please sign in to comment.