summaryrefslogtreecommitdiffstats
path: root/games/gzdoom/patches/120-lzma-pthreads.patch
blob: 30b708c5e5c33714427670c62428285a92cea7e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/libraries/lzma/CMakeLists.txt
+++ b/libraries/lzma/CMakeLists.txt
@@ -2,8 +2,6 @@ make_release_only()
 
 set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE -DZ7_PPMD_SUPPORT -DZ7_AFFINITY_DISABLE" )
 
-find_package(Threads)
-
 add_library( lzma STATIC
 	C/7zAlloc.c
 	C/7zArcIn.c
@@ -48,4 +46,5 @@ add_library( lzma STATIC
 	C/XzEnc.c
 	C/XzIn.c
 )
-target_link_libraries( lzma Threads::Threads )
+
+target_link_libraries( lzma PUBLIC pthread )