The problem is in the debian-specific patch 0003-Install-proper-CMake- targets.patch to the package (see https://sources.debian.org/src/draco/1.5.0+dfsg-4/debian/patches/0003-Install- proper-CMake-targets.patch/). In this patch, they add to the draco- config.cmake.template file the lines:
~~~ add_library(draco::draco INTERFACE IMPORTED) set_target_properties(draco::draco PROPERTIES INTERFACE_LINK_LIBRARIES "draco_shared") ~~~ That lead to define twice the draco::draco target if `find_package(draco)` is called twice. Ideally the draco::draco target should be defined only if it was not defined before, i.e. those lines should be substituted with: ~~~ if(NOT TARGET draco::draco) add_library(draco::draco INTERFACE IMPORTED) set_target_properties(draco::draco PROPERTIES INTERFACE_LINK_LIBRARIES "draco_shared") endif() ~~~ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1958432 Title: In CMake find_package(draco) fails if called two times To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/draco/+bug/1958432/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
