Skip to content

fix: remove and ignore the include directory#5

Merged
maureeungaro merged 1 commit into
gemc:mainfrom
c-dilks:rm-include
May 22, 2026
Merged

fix: remove and ignore the include directory#5
maureeungaro merged 1 commit into
gemc:mainfrom
c-dilks:rm-include

Conversation

@c-dilks
Copy link
Copy Markdown
Contributor

@c-dilks c-dilks commented May 21, 2026

cadmesh builds both assimp and tetgen. The compileCmesh script indicates a preference for the cadmesh installation prefix to be the top-level mlibary source code directory; however, this top-level directory has an include/ directory that already contains some version of assimp and tetgen headers.

This include/ directory should be removed and not version controlled, in particular because old headers could get mixed with new ones here:

include_directories(${CMAKE_INSTALL_PREFIX}/include)

This is especially painful if one builds cadmesh with WITH_SYS_ASSIMP=ON.

`cadmesh` builds both `assimp` and `tetgen`. The `compileCmesh` script
indicates a preference for the `cadmesh` installation prefix to be the
top-level `mlibary` source code directory; however, this top-level
directory has an `include/` directory that _already_ contains some version
of `assimp` and `tetgen` headers.

This `include/` directory should be removed and not version controlled,
in particular because old headers could get mixed with new ones here:

https://github.com/gemc/mlibrary/blob/09addcd14af872a22bf92437aea841a1de910112/cadmesh/CMakeLists.txt#L74

This is especially painful if one builds `cadmesh` with `WITH_SYS_ASSIMP=ON`.
@maureeungaro
Copy link
Copy Markdown
Contributor

thanks for catching that - somehow forgot to remove it when updating to use the latest assimp

@maureeungaro maureeungaro merged commit 4a13acb into gemc:main May 22, 2026
@c-dilks c-dilks deleted the rm-include branch May 22, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants