Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2019-10-14 16:48:29 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-10-14 16:48:29 +0300
commita7c843d2132c39fe699423af1a4fe44a86e4ff8d (patch)
tree3629d0239a28b42c7440aaf324fc46067f81ae17 /cmake
parent05431c0e6d2278e680ce4590a13e4b7e304c83ab (diff)
Fix the missing link dependencies for tbb on Linux
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindTBB.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/FindTBB.cmake b/cmake/modules/FindTBB.cmake
index 153e615eb..b09bafda3 100644
--- a/cmake/modules/FindTBB.cmake
+++ b/cmake/modules/FindTBB.cmake
@@ -290,6 +290,11 @@ if(NOT TBB_FOUND)
IMPORTED_LOCATION_MINSIZEREL ${TBB_LIBRARIES_RELEASE}
)
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()
mark_as_advanced(TBB_INCLUDE_DIRS TBB_LIBRARIES)