Skip to content

Drop explicit inclusion of contrib/ headers - #5316

Merged
kimkulling merged 7 commits into
assimp:masterfrom
umlaeute-contributions:cleanup/no-explicit-contrib-headers
Nov 29, 2023
Merged

kimkulling merged 7 commits into
assimp:masterfrom
umlaeute-contributions:cleanup/no-explicit-contrib-headers

Conversation

@umlaeute

@umlaeute umlaeute commented Nov 6, 2023

Copy link
Copy Markdown
Contributor

this PR removes the following pattern:

#ifdef ASSIMP_USE_HUNTER
#  include <${HEADER}>
#else
#  include "../contrib/utf8cpp/source/${HEADER}"
#endif

since the build-system already sets the appropriate include paths (e.g. -I.../contrib/utf8cpp/source/) we can simply use

#include "${HEADER}"

instead, thus simplifying the code-base and making it easier to selectively use system-installed headers, without having to use -DASSIMP_USE_HUNTER=1 to get the proper includes (when not using hunter at all).

this PR builds on #5279

@umlaeute

umlaeute commented Nov 6, 2023

Copy link
Copy Markdown
Contributor Author

@kimkulling i'm not exactly sure how to understand #5279 (review)

do you mean that this PR is the wrong way to do it?

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@kimkulling
kimkulling merged commit 6f715ed into assimp:master Nov 29, 2023
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants