Skip to content

Commit

Permalink
Build: Make sure to use tbb target if it exists (#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgritz committed Dec 4, 2021
1 parent ca441d5 commit a96f8d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/openvdb.imageio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ if (OpenVDB_FOUND)
add_oiio_plugin (openvdbinput.cpp
INCLUDE_DIRS ${OPENVDB_INCLUDES} ${TBB_INCLUDE_DIRS}
LINK_LIBRARIES ${OPENVDB_LIBRARIES}
${TBB_tbb_LIBRARY} ${BOOST_LIBRARIES})
${TBB_tbb_LIBRARY}
$<TARGET_NAME_IF_EXISTS:TBB::tbb>
${BOOST_LIBRARIES})
endif()

0 comments on commit a96f8d7

Please sign in to comment.