mirror of
https://github.com/madler/zlib
synced 2025-03-28 21:13:15 +00:00
Repair MinGW cmake build.
This commit is contained in:
parent
0b29118367
commit
d20659fc74
@ -155,11 +155,6 @@ set(ZLIB_SRCS
|
||||
uncompr.c
|
||||
zutil.c)
|
||||
|
||||
set_source_files_properties(
|
||||
win32/zlib1.rc
|
||||
PROPERTIES COMPILE_FLAGS
|
||||
$<$<STREQUAL:${CMAKE_RC_OUTPUT_EXTENSION},.obj>:-DGCC_WINDRES>)
|
||||
|
||||
if(WIN32)
|
||||
set(zlib_static_suffix "s")
|
||||
set(CMAKE_DEBUG_POSTFIX "d")
|
||||
|
@ -50,7 +50,7 @@ AR = $(PREFIX)ar
|
||||
ARFLAGS = rcs
|
||||
|
||||
RC = $(PREFIX)windres
|
||||
RCFLAGS = --define GCC_WINDRES
|
||||
RCFLAGS =
|
||||
|
||||
STRIP = $(PREFIX)strip
|
||||
|
||||
|
@ -1,11 +1,8 @@
|
||||
#include <winver.h>
|
||||
#include "../zlib.h"
|
||||
|
||||
#ifdef GCC_WINDRES
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
#else
|
||||
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
|
||||
#endif
|
||||
|
||||
FILEVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0
|
||||
PRODUCTVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0
|
||||
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||
|
Loading…
x
Reference in New Issue
Block a user