* IOhannes m zmรถlnig <umlae...@debian.org> [2022-08-21 11:01]:
I'm not an expert when it comes to Cmake (being an autotools guy), so patches 
welcome ๐Ÿ˜‰
Sure, happy to help!
You could just replace "${DRACO_LIBRARIES}" with the literal
"draco::draco" target name, but in the attached patch, I added a check
to set the DRACO_LIBRARIES to draco::draco instead. This way, assimp
will build with both the bookworm and the bullseye version of draco.


Cheers
Timo

--
โข€โฃดโ พโ ปโขถโฃฆโ €   โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โฃพโ โข โ ’โ €โฃฟโก   โ”‚ Timo Rรถhling                                       โ”‚
โขฟโก„โ ˜โ ทโ šโ ‹โ €   โ”‚ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA โ”‚
โ ˆโ ณโฃ„โ €โ €โ €โ €   โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
diff --git a/debian/patches/use-system-libdraco.patch b/debian/patches/use-system-libdraco.patch
index 76c1bcb..0946461 100644
--- a/debian/patches/use-system-libdraco.patch
+++ b/debian/patches/use-system-libdraco.patch
@@ -12,6 +12,9 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  ENDIF()
  
 +find_package(draco CONFIG REQUIRED)
++if(NOT DRACO_LIBRARIES)
++    set(DRACO_LIBRARIES "draco::draco")
++endif()
 +target_link_libraries(assimp ${DRACO_LIBRARIES})
 +
  if(ASSIMP_ANDROID_JNIIOSYSTEM)

Attachment: signature.asc
Description: PGP signature

Reply via email to