mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-13 07:31:04 +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( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_PPMD_SUPPPORT" )
|
||||||
|
|
||||||
set( LZMA_FILES
|
find_package(Threads)
|
||||||
|
|
||||||
|
add_library( lzma STATIC
|
||||||
C/7zArcIn.c
|
C/7zArcIn.c
|
||||||
C/7zBuf.c
|
C/7zBuf.c
|
||||||
C/7zCrc.c
|
C/7zCrc.c
|
||||||
|
@ -18,17 +20,13 @@ set( LZMA_FILES
|
||||||
C/CpuArch.c
|
C/CpuArch.c
|
||||||
C/Delta.c
|
C/Delta.c
|
||||||
C/LzFind.c
|
C/LzFind.c
|
||||||
|
C/LzFindMt.c
|
||||||
|
C/LzFindOpt.c
|
||||||
C/Lzma2Dec.c
|
C/Lzma2Dec.c
|
||||||
C/LzmaDec.c
|
C/LzmaDec.c
|
||||||
C/LzmaEnc.c
|
C/LzmaEnc.c
|
||||||
C/Ppmd7.c
|
C/Ppmd7.c
|
||||||
C/Ppmd7Dec.c )
|
C/Ppmd7Dec.c
|
||||||
|
C/Threads.c
|
||||||
if( WIN32 )
|
)
|
||||||
set( LZMA_FILES ${LZMA_FILES} C/LzFindMt.c C/LzFindOpt.c C/Threads.c )
|
target_link_libraries( lzma Threads::Threads )
|
||||||
else()
|
|
||||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_ST" )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_library( lzma STATIC ${LZMA_FILES} )
|
|
||||||
target_link_libraries( lzma )
|
|
||||||
|
|
Loading…
Reference in a new issue