Skip to content

Conversation

nim65s
Copy link

@nim65s nim65s commented Oct 5, 2025

Hi,

In nixpkgs, we are using lib3mf CMake exports in meshlab, and without a proper lib3mf_INCLUDE_DIR, we get:

meshlab> /build/source/src/meshlabplugins/io_3mf/io_3mf.cpp:30:10: fatal error: lib3mf_implicit.hpp: No such file or directory
meshlab>    30 | #include "lib3mf_implicit.hpp"
meshlab>       |          ^~~~~~~~~~~~~~~~~~~~~

This is because all headers are installed in CMAKE_INSTALL_INCLUDEDIR, which is defined in the main CMakeLists.txt as:

set(CMAKE_INSTALL_INCLUDEDIR include/lib3mf CACHE PATH "directory for installing header files")

ref. NixOS/nixpkgs#445078 & cnr-isti-vclab/meshlab#1617

Because all headers are installed in `CMAKE_INSTALL_INCLUDEDIR` which is
defined in the main `CMakeLists.txt` as:

```cmake
set(CMAKE_INSTALL_INCLUDEDIR include/lib3mf CACHE PATH "directory for installing header files")
```
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.

1 participant