aports/testing/draco/0001-Fix-removal-of-build-dir-prefix-from-include-path.patch
Holger Jaekel 31cab7e4d7 testing/draco: new aport
Library for compressing and decompressing 3D geometric meshes and point clouds
https://google.github.io/draco/
2024-06-25 11:30:29 +00:00

27 lines
1.1 KiB
Diff

From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Sat, 11 Dec 2021 12:41:59 +0100
Subject: Fix removal of build dir prefix from include path
---
cmake/draco_install.cmake | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/cmake/draco_install.cmake b/cmake/draco_install.cmake
index b9dda26..20e50ec 100644
--- a/cmake/draco_install.cmake
+++ b/cmake/draco_install.cmake
@@ -37,11 +37,10 @@ macro(draco_setup_install_target)
list(REMOVE_DUPLICATES draco_api_includes)
- # Strip $draco_src_root from the file paths: we need to install relative to
- # $include_directory.
- list(TRANSFORM draco_api_includes REPLACE "${draco_src_root}/" "")
-
foreach(draco_api_include ${draco_api_includes})
+ # Strip $draco_src_root from the file paths: we need to install relative to
+ # $include_directory.
+ string(REPLACE "${draco_src_root}/" "" draco_api_include "${draco_api_include}")
get_filename_component(file_directory ${draco_api_include} DIRECTORY)
set(target_directory "${includes_path}/draco/${file_directory}")
install(FILES ${draco_src_root}/${draco_api_include}