mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
e17e6868e6
This checked errno without first confirming that there has been an error, it is also pointless because the value range check will automatically catch the error case as well.
18 lines
323 B
CMake
18 lines
323 B
CMake
cmake_minimum_required( VERSION 3.1.0 )
|
|
|
|
make_release_only()
|
|
|
|
if (MSVC)
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4244" )
|
|
endif()
|
|
|
|
add_definitions( -DBZ_NO_STDIO )
|
|
add_library( bz2 STATIC
|
|
blocksort.c
|
|
bzlib.c
|
|
compress.c
|
|
crctable.c
|
|
decompress.c
|
|
huffman.c
|
|
randtable.c )
|
|
target_link_libraries( bz2 )
|