summaryrefslogtreecommitdiff
blob: d8770bc687caea1dabd45642c3f4bbc4eeee217e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: libaom-9999/CMakeLists.txt
===================================================================
--- libaom-9999.orig/CMakeLists.txt
+++ libaom-9999/CMakeLists.txt
@@ -598,6 +598,9 @@ if (BUILD_SHARED_LIBS)
   include("${AOM_ROOT}/build/cmake/exports.cmake")
   setup_exports_target()
   set_target_properties(aom PROPERTIES SOVERSION 0)
+  if (HAVE_PTHREAD_H AND CONFIG_MULTITHREAD)
+    target_link_libraries(aom ${AOM_LIB_LINK_TYPE} Threads::Threads)
+  endif ()
 endif ()
 
 # Handle user supplied compile and link flags last to ensure they're obeyed.