From: =?utf-8?q?Timo_R=C3=B6hling?= 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}