Public bug reported:

The following simple CMake script works fine (if libdraco-dev is installed):
~~~
cmake_minimum_required(VERSION 3.16)
project(assimptest)
find_package(draco REQUIRED)
~~~

Instead, the following one fails:
~~~
cmake_minimum_required(VERSION 3.16)
project(assimptest)
find_package(draco REQUIRED)
~~~

with error:
~~~
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/draco/draco-config.cmake:41 
(add_library):
  add_library cannot create imported target "draco::draco" because another
  target with the same name already exists.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/assimp-5.1/assimpConfig.cmake:37 
(find_package)
  CMakeLists.txt:6 (find_package)
~~~

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libdraco-dev 1.5.0+dfsg-4
ProcVersionSignature: Ubuntu 5.13.0-1010.12-gcp 5.13.19
Uname: Linux 5.13.0-1010-gcp x86_64
ApportVersion: 2.20.11-0ubuntu75
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Jan 19 17:13:37 2022
ProcEnviron:
 TERM=xterm-color
 PATH=(custom, no user)
SourcePackage: draco
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: draco (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to