Skip to content

Commit

Permalink
no need to link tbb when using system library
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Nov 6, 2023
1 parent 3b47855 commit 612aeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/external/embree.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ find_package(TBB)
if(MESHLAB_ALLOW_SYSTEM_EMBREE AND TARGET embree AND TBB_FOUND)
message(STATUS "- embree - using system-provided library")
add_library(external-embree INTERFACE)
target_link_libraries(external-embree INTERFACE embree tbb)
target_link_libraries(external-embree INTERFACE embree)
elseif(MESHLAB_ALLOW_DOWNLOAD_DLL_EMBREE AND WIN32)
set(EMBREE_WIN_DIR "${MESHLAB_EXTERNAL_DOWNLOAD_DIR}/embree-${EMBREE_VER}.x64.windows")
set(EMBREE_WIN_CHECK "${EMBREE_WIN_DIR}/lib/embree${EMBREE_MAJOR}.lib")
Expand Down

0 comments on commit 612aeba

Please sign in to comment.