Page MenuHome

Simplify NanoVDB dependency installation
ClosedPublic

Authored by Patrick Mours (pmoursnv) on Oct 29 2020, 1:48 PM.

Details

Summary

The previous solution forced us to switch to an entirely new OpenVDB branch, which may not be desireable.
But NanoVDB is header-only and backwards compatible with older OpenVDB versions to a certain degree, so this patch makes it a standalone dependency that is independent of the OpenVDB one.

It works by downloading the "feature/nanovdb" branch of OpenVDB, but using the NanoVDB CMake in the "nanovdb" subdirectory, instead of the root one and therefore ignoring everything else.
Also enabled NanoVDB by default for make deps builds now.

Diff Detail

Repository
rB Blender
Branch
nanovdb_deps (branched from master)
Build Status
Buildable 10973
Build 10973: arc lint + arc unit

Event Timeline

Patrick Mours (pmoursnv) requested review of this revision.Oct 29 2020, 1:48 PM
Patrick Mours (pmoursnv) created this revision.
build_files/build_environment/cmake/nanovdb.cmake
44

This is what makes this work, as it switches the build to this CMake: https://github.com/AcademySoftwareFoundation/openvdb/blob/feature/nanovdb/nanovdb/CMakeLists.txt

This revision is now accepted and ready to land.Oct 29 2020, 2:04 PM