1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00

Fix the missing link dependencies for tbb on Linux

This commit is contained in:
tamasmeszaros
2019-10-14 15:48:29 +02:00
parent 05431c0e6d
commit a7c843d213
+5
View File
@@ -290,6 +290,11 @@ if(NOT TBB_FOUND)
IMPORTED_LOCATION_MINSIZEREL ${TBB_LIBRARIES_RELEASE} IMPORTED_LOCATION_MINSIZEREL ${TBB_LIBRARIES_RELEASE}
) )
endif() endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
find_package(Threads QUIET REQUIRED)
set_target_properties(TBB::tbb PROPERTIES INTERFACE_LINK_LIBRARIES "${CMAKE_DL_LIBS};Threads::Threads")
endif()
endif() endif()
mark_as_advanced(TBB_INCLUDE_DIRS TBB_LIBRARIES) mark_as_advanced(TBB_INCLUDE_DIRS TBB_LIBRARIES)