Skip to content

Commit 567740e

Browse files
committed
Add missing delayed load logic to version.h and FindOpenVDB
Signed-off-by: Dan Bailey <[email protected]>
1 parent 9f33764 commit 567740e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cmake/FindOpenVDB.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ if(_OPENVDB_HAS_NEW_VERSION_HEADER)
590590
OPENVDB_GET_VERSION_DEFINE(${_OPENVDB_VERSION_HEADER} "OPENVDB_USE_IMATH_HALF" OpenVDB_USES_IMATH_HALF)
591591
OPENVDB_GET_VERSION_DEFINE(${_OPENVDB_VERSION_HEADER} "OPENVDB_USE_BLOSC" OpenVDB_USES_BLOSC)
592592
OPENVDB_GET_VERSION_DEFINE(${_OPENVDB_VERSION_HEADER} "OPENVDB_USE_ZLIB" OpenVDB_USES_ZLIB)
593+
OPENVDB_GET_VERSION_DEFINE(${_OPENVDB_VERSION_HEADER} "OPENVDB_USE_DELAYED_LOADING" OpenVDB_USES_DELAYED_LOADING)
593594
elseif(NOT OPENVDB_USE_STATIC_LIBS)
594595
# Use GetPrerequisites to see which libraries this OpenVDB lib has linked to
595596
# which we can query for optional deps. This basically runs ldd/otoll/objdump

openvdb/openvdb/version.h.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@
138138
#cmakedefine OPENVDB_USE_ZLIB
139139
#endif
140140

141+
/* Denotes whether VDB was built with Delayed Loading support */
142+
#ifndef OPENVDB_USE_DELAYED_LOADING
143+
#cmakedefine OPENVDB_USE_DELAYED_LOADING
144+
#endif
145+
141146
/* Denotes whether VDB was built with explicit template instantiation */
142147
#ifndef OPENVDB_USE_EXPLICIT_INSTANTIATION
143148
#cmakedefine OPENVDB_USE_EXPLICIT_INSTANTIATION

0 commit comments

Comments
 (0)