google / google/draco

Library Targets Include Directories Broken

Open
#1,124 0 comments 0 reactions 0 assignees View on GitHub
bug cmake low priority
Dominant language
C++
Stars
7.5k
Forks
1.1k
Avg merge
47m
Merged PRs (30d)
1

Description

Hi folks, when using the draco library as a subproject, or with CMake's FetchContent machinery, the draco includes are broken. This stems from the definition of the draco_add_library macro. It is not able to find the headers and generated file(draco/draco_features.h header).

I have done the work around like below:-
target_include_directories(draco_static
PUBLIC
$
$
$
)

But this way we are exposing the entire draco source code to consumer. Does anyone know better solution for this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.