From 612aeba709097e00b1c7d150f3c1ee6faff51686 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Mon, 6 Nov 2023 17:10:04 +0100 Subject: [PATCH] no need to link tbb when using system library --- src/external/embree.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/embree.cmake b/src/external/embree.cmake index c78dbaa48..652bd1902 100644 --- a/src/external/embree.cmake +++ b/src/external/embree.cmake @@ -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")