summaryrefslogtreecommitdiff
path: root/debian/patches/0007-Force-linking-against-libatomic-for-parts-that-use-T.patch
blob: 7d69e5ce1ad6b5119ba433762adec52554e9b444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Gard Spreemann <gspreemann@gmail.com>
Date: Fri, 15 Jun 2018 13:25:37 +0200
Subject: Force linking against libatomic for parts that use TBB.

---
 cmake/modules/FindTBB.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake/modules/FindTBB.cmake b/cmake/modules/FindTBB.cmake
index 13f4d92..6baa8d7 100644
--- a/cmake/modules/FindTBB.cmake
+++ b/cmake/modules/FindTBB.cmake
@@ -375,6 +375,8 @@ if (TBB_INCLUDE_DIR)
                 endif(NOT TBB_without_pthread)
         endif(UNIX AND NOT APPLE)
 
+        list(APPEND ALL_TBB_LIBRARIES atomic)
+        
         set (TBB_LIBRARIES ${ALL_TBB_LIBRARIES}
              CACHE PATH "TBB libraries" FORCE)