Skip to content

Commit f7c6b62

Browse files
committedApr 19, 2012
osgeo4w: fix quazip support
1 parent e5d97f5 commit f7c6b62

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed
 

‎CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ FIND_PROGRAM(QT_LRELEASE_EXECUTABLE
271271
# if WIN32 should use zlib from QT
272272
FIND_PACKAGE(ZLIB)
273273
IF (ZLIB_FOUND)
274-
MESSAGE(STATUS "Found zlib: ${ZLIB_LIBRARIES}")
274+
MESSAGE(STATUS "Found zlib: ${ZLIB_LIBRARY}")
275275
SET(HAVE_ZLIB TRUE)
276276
ELSE (ZLIB_FOUND)
277277
MESSAGE(STATUS "Could not find zlib (optional)")

‎ms-windows/osgeo4w/package-nightly.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ cmake -G "Visual Studio 9 2008" ^
111111
-D QT_PNG_LIBRARY=%O4W_ROOT%/lib/libpng13.lib ^
112112
-D QWT_INCLUDE_DIR=%O4W_ROOT%/include/qwt ^
113113
-D QWT_LIBRARY=%O4W_ROOT%/lib/qwt5.lib ^
114+
-D ZLIB_INCLUDE_DIR=%O4W_ROOT%/include ^
115+
-D ZLIB_LIBRARY=%O4W_ROOT%/lib/zlib.lib ^
114116
-D CMAKE_INSTALL_PREFIX=%O4W_ROOT%/apps/%PACKAGENAME% ^
115117
-D CMAKE_CXX_FLAGS_RELWITHDEBINFO="/MD /ZI /Od /D NDEBUG" ^
116118
-D FCGI_INCLUDE_DIR=%O4W_ROOT%/include ^

‎ms-windows/osgeo4w/package.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ cmake -G "Visual Studio 9 2008" ^
109109
-D QT_PNG_LIBRARY=%O4W_ROOT%/lib/libpng13.lib ^
110110
-D QWT_INCLUDE_DIR=%O4W_ROOT%/include/qwt ^
111111
-D QWT_LIBRARY=%O4W_ROOT%/lib/qwt5.lib ^
112+
-D ZLIB_INCLUDE_DIR=%O4W_ROOT%/include ^
113+
-D ZLIB_LIBRARY=%O4W_ROOT%/lib/zlib.lib ^
112114
-D CMAKE_INSTALL_PREFIX=%O4W_ROOT%/apps/%PACKAGENAME% ^
113115
-D CMAKE_CXX_FLAGS_RELWITHDEBINFO="/MD /ZI /Od /D NDEBUG" ^
114116
-D FCGI_INCLUDE_DIR=%O4W_ROOT%/include ^

‎src/core/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ SET(QGIS_CORE_SRCS
178178
)
179179

180180
IF(HAVE_ZLIB)
181+
ADD_DEFINITIONS(-DQUAZIP_BUILD)
182+
181183
SET(QGIS_CORE_SRCS
182184
${QGIS_CORE_SRCS}
183185
quazip/unzip.c

1 commit comments

Comments
 (1)

etiennesky commented on Apr 25, 2012

@etiennesky
Contributor

thanks, Jurgen!

Please sign in to comment.