Package: aom / 1.0.0-3

cmake-link-pthreads-into-aom-target.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Tom Finegan <tomfinegan@google.com>
Date: Thu, 2 Aug 2018 11:12:22 -0700
X-Dgit-Generated: 1.0.0-1 fe173d61e658dcbf99a2911ff161ad832be94e15
Subject: cmake: Link pthreads into aom target.

Link pthread into the aom library target instead of
looping over all executable targets and making each
depend on pthread.

BUG=aomedia:2071

Change-Id: I93766e16e47fb74844180f20c7e43ba1e7a5b0ed
(cherry picked from commit a167939a0c2be1206ba3175f5bcaf917d55f15ef)

---

--- aom-1.0.0.orig/CMakeLists.txt
+++ aom-1.0.0/CMakeLists.txt
@@ -552,9 +552,7 @@ endif()
 
 if(HAVE_PTHREAD_H AND CONFIG_MULTITHREAD)
   find_package(Threads)
-  foreach(app_target ${AOM_APP_TARGETS})
-    target_link_libraries(${app_target} ${AOM_LIB_LINK_TYPE} Threads::Threads)
-  endforeach()
+  target_link_libraries(aom ${AOM_LIB_LINK_TYPE} Threads::Threads)
 endif()
 
 if(XCODE)