Skip to content

Commit 1dda673

Browse files
committed
Fix component library if we are trying to find nanovdb component in OpenVDB.
Signed-off-by: Andre Pradhana <[email protected]>
1 parent d0c7b0b commit 1dda673

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/FindOpenVDB.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})
392392
elseif(${COMPONENT} STREQUAL "openvdb_je")
393393
# alias to the result of openvdb which should be handled first
394394
set(OpenVDB_${COMPONENT}_LIBRARY ${OpenVDB_openvdb_LIBRARY})
395+
elseif(${COMPONENT} STREQUAL "nanovdb")
396+
# alias to the result of openvdb which should be handled first
397+
set(OpenVDB_${COMPONENT}_LIBRARY ${OpenVDB_openvdb_LIBRARY})
395398
else()
396399
find_library(OpenVDB_${COMPONENT}_LIBRARY ${LIB_NAME}
397400
${_FIND_OPENVDB_ADDITIONAL_OPTIONS}

0 commit comments

Comments
 (0)