mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- enabled LZMA multithreading on all platforms
This commit is contained in:
parent
121b89306a
commit
9fac6058b7
1 changed files with 9 additions and 11 deletions
|
@ -4,7 +4,9 @@ make_release_only()
|
|||
|
||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_PPMD_SUPPPORT" )
|
||||
|
||||
set( LZMA_FILES
|
||||
find_package(Threads)
|
||||
|
||||
add_library( lzma STATIC
|
||||
C/7zArcIn.c
|
||||
C/7zBuf.c
|
||||
C/7zCrc.c
|
||||
|
@ -18,17 +20,13 @@ set( LZMA_FILES
|
|||
C/CpuArch.c
|
||||
C/Delta.c
|
||||
C/LzFind.c
|
||||
C/LzFindMt.c
|
||||
C/LzFindOpt.c
|
||||
C/Lzma2Dec.c
|
||||
C/LzmaDec.c
|
||||
C/LzmaEnc.c
|
||||
C/Ppmd7.c
|
||||
C/Ppmd7Dec.c )
|
||||
|
||||
if( WIN32 )
|
||||
set( LZMA_FILES ${LZMA_FILES} C/LzFindMt.c C/LzFindOpt.c C/Threads.c )
|
||||
else()
|
||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_ST" )
|
||||
endif()
|
||||
|
||||
add_library( lzma STATIC ${LZMA_FILES} )
|
||||
target_link_libraries( lzma )
|
||||
C/Ppmd7Dec.c
|
||||
C/Threads.c
|
||||
)
|
||||
target_link_libraries( lzma Threads::Threads )
|
||||
|
|
Loading…
Reference in a new issue