Skip to content

Commit 215dbbf

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

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/cmake/modules/FindOpenVDB.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ if (OpenVDB_FOUND)
8989
set_property(TARGET OpenVDB::openvdb APPEND PROPERTY
9090
IMPORTED_LOCATION "${OPENVDB_LIBRARIES}")
9191
endif ()
92+
93+
# Note: OpenVDB older than 12 needs Boost headers.
94+
if (OpenVDB_VERSION VERSION_LESS 12)
95+
checked_find_package (Boost)
96+
endif()
9297
endif ()
9398

9499
MARK_AS_ADVANCED(

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)