Skip to content

Commit 4b1957d

Browse files
committed
Look for boost headers for OpenVDBs older than 12
Signed-off-by: Alex Fuller <[email protected]>
1 parent 5280eb6 commit 4b1957d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/cmake/externalpackages.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ checked_find_package (OpenVDB
182182
VERSION_MIN 9.0
183183
DEPS TBB
184184
DEFINITIONS USE_OPENVDB=1)
185+
# Note: OpenVDB older than 12 needs Boost headers.
186+
if (OpenVDB_FOUND AND OpenVDB_VERSION LESS 12)
187+
checked_find_package (Boost)
188+
endif()
185189

186190
checked_find_package (Ptex PREFER_CONFIG)
187191
if (NOT Ptex_FOUND OR NOT Ptex_VERSION)

src/openvdb.imageio/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
if (OpenVDB_FOUND)
66
add_oiio_plugin (openvdbinput.cpp
7-
INCLUDE_DIRS ${OPENVDB_INCLUDES} ${TBB_INCLUDE_DIRS}
7+
INCLUDE_DIRS ${OPENVDB_INCLUDES}
8+
${TBB_INCLUDE_DIRS}
9+
${Boost_INCLUDE_DIRS}
810
LINK_LIBRARIES ${OPENVDB_LIBRARIES}
911
$<TARGET_NAME_IF_EXISTS:TBB::tbb>)
1012
endif()

0 commit comments

Comments
 (0)