Skip to content

Prevent including private headers of nanovdb-editor - #693

Open
phapalova wants to merge 7 commits into
openvdb:mainfrom
phapalova:phapalova/fix-editor-include
Open

Prevent including private headers of nanovdb-editor#693
phapalova wants to merge 7 commits into
openvdb:mainfrom
phapalova:phapalova/fix-editor-include

Conversation

@phapalova

@phapalova phapalova commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

CPM downloads the entire nanovdb-editor repository, but only the headers in the top-level nanovdb_editor folder (PNanoVDBExt.h and putil/) are the public, versioned interface that fVDB is allowed to include as <nanovdb_editor/...>. Everything else (editor/, compute/, raster/, vulkan/, imgui/, ...) is internal implementation detail.

In openvdb/nanovdb-editor#218 editor has added a build config to only copy the public headers. This PR adds this config and points the include directory to the build folder instead of to the CPM cache with the cloned repository.

Signed-off-by: Petra Hapalova <phapalova@nvidia.com>
@phapalova
phapalova requested a review from a team as a code owner July 16, 2026 10:52
@phapalova
phapalova requested review from fwilliams and harrism July 16, 2026 10:52
@phapalova phapalova added the Viewer Issues related to the viewer in fvdb label Jul 16, 2026
@phapalova
phapalova marked this pull request as draft July 16, 2026 14:00
Signed-off-by: Petra Hapalova <phapalova@nvidia.com>
…include

Signed-off-by: Petra Hapalova <phapalova@nvidia.com>
@phapalova
phapalova marked this pull request as ready for review July 17, 2026 14:00
@phapalova
phapalova marked this pull request as draft July 17, 2026 14:00
Signed-off-by: Petra Hapalova <phapalova@nvidia.com>
@phapalova
phapalova marked this pull request as ready for review July 20, 2026 11:01
Signed-off-by: Petra Hapalova <phapalova@nvidia.com>

@harrism harrism left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could nanovdb-editor export an INTERFACE target for the public headers under PUBLIC_HEADERS_ONLY, so fVDB links nanovdb_editor::public_headers instead of hard-coding ${nanovdb_editor_BINARY_DIR}/include?

I think this would be the more cmake-idiomatic approach. This PR is reasonable, but I think it would be nicer as an interface library.

…include

Signed-off-by: Petra Hapalova <phapalova@nvidia.com>
…stead of direct include paths

Signed-off-by: Petra Hapalova <phapalova@nvidia.com>
@phapalova
phapalova requested a review from harrism July 22, 2026 11:40
@phapalova
phapalova enabled auto-merge (squash) July 22, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Viewer Issues related to the viewer in fvdb

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants