aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28a4c3f..f428458 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -83,8 +83,8 @@ set_source_files_properties(win32/zlib1.rc PROPERTIES
83 COMPILE_FLAGS $<$<STREQUAL:${CMAKE_RC_OUTPUT_EXTENSION},.obj>:-DGCC_WINDRES>) 83 COMPILE_FLAGS $<$<STREQUAL:${CMAKE_RC_OUTPUT_EXTENSION},.obj>:-DGCC_WINDRES>)
84 84
85if(WIN32) 85if(WIN32)
86 set (zlib_static_suffix "s") 86 set(zlib_static_suffix "s")
87 set (zlib_debug_suffix "d") 87 set(CMAKE_DEBUG_POSTFIX "d")
88endif(WIN32) 88endif(WIN32)
89 89
90if(ZLIB_BUILD_SHARED) 90if(ZLIB_BUILD_SHARED)
@@ -112,9 +112,8 @@ if(ZLIB_BUILD_SHARED)
112 # the DLL comes from the resource file win32/zlib1.rc 112 # the DLL comes from the resource file win32/zlib1.rc
113 set_target_properties(zlib PROPERTIES 113 set_target_properties(zlib PROPERTIES
114 DEFINE_SYMBOL ZLIB_DLL 114 DEFINE_SYMBOL ZLIB_DLL
115 OUTPUT_NAME z
115 SOVERSION 1 116 SOVERSION 1
116 PROPERTIES OUTPUT_NAME z
117 PROPERTIES OUTPUT_NAME_DEBUG z${zlib_debug_suffix}
118 $<$<BOOL:NOT:$CYGWIN}>:VERSION ${zlib_VERSION}>) 117 $<$<BOOL:NOT:$CYGWIN}>:VERSION ${zlib_VERSION}>)
119 if(UNIX AND NOT APPLE AND NOT(CMAKE_SYSTEM_NAME STREQUAL AIX)) 118 if(UNIX AND NOT APPLE AND NOT(CMAKE_SYSTEM_NAME STREQUAL AIX))
120 # On unix-like platforms the library is almost always called libz 119 # On unix-like platforms the library is almost always called libz
@@ -139,8 +138,8 @@ if(ZLIB_BUILD_STATIC)
139 PUBLIC 138 PUBLIC
140 $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>) 139 $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>)
141 set_target_properties(zlibstatic PROPERTIES 140 set_target_properties(zlibstatic PROPERTIES
142 PROPERTIES OUTPUT_NAME z${zlib_static_suffix} 141 EXPORT_NAME ZLIBSTATIC
143 PROPERTIES OUTPUT_NAME_DEBUG z${zlib_static_suffix}${zlib_debug_suffix}) 142 OUTPUT_NAME z${zlib_static_suffix})
144endif(ZLIB_BUILD_STATIC) 143endif(ZLIB_BUILD_STATIC)
145 144
146if(ZLIB_INSTALL_LIBRARIES) 145if(ZLIB_INSTALL_LIBRARIES)