Skip to content

Commit

Permalink
osgeo4w: fix quazip support
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 19, 2012
1 parent e5d97f5 commit f7c6b62
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -271,7 +271,7 @@ FIND_PROGRAM(QT_LRELEASE_EXECUTABLE
# if WIN32 should use zlib from QT
FIND_PACKAGE(ZLIB)
IF (ZLIB_FOUND)
MESSAGE(STATUS "Found zlib: ${ZLIB_LIBRARIES}")
MESSAGE(STATUS "Found zlib: ${ZLIB_LIBRARY}")
SET(HAVE_ZLIB TRUE)
ELSE (ZLIB_FOUND)
MESSAGE(STATUS "Could not find zlib (optional)")
Expand Down
2 changes: 2 additions & 0 deletions ms-windows/osgeo4w/package-nightly.cmd
Expand Up @@ -111,6 +111,8 @@ cmake -G "Visual Studio 9 2008" ^
-D QT_PNG_LIBRARY=%O4W_ROOT%/lib/libpng13.lib ^
-D QWT_INCLUDE_DIR=%O4W_ROOT%/include/qwt ^
-D QWT_LIBRARY=%O4W_ROOT%/lib/qwt5.lib ^
-D ZLIB_INCLUDE_DIR=%O4W_ROOT%/include ^
-D ZLIB_LIBRARY=%O4W_ROOT%/lib/zlib.lib ^
-D CMAKE_INSTALL_PREFIX=%O4W_ROOT%/apps/%PACKAGENAME% ^
-D CMAKE_CXX_FLAGS_RELWITHDEBINFO="/MD /ZI /Od /D NDEBUG" ^
-D FCGI_INCLUDE_DIR=%O4W_ROOT%/include ^
Expand Down
2 changes: 2 additions & 0 deletions ms-windows/osgeo4w/package.cmd
Expand Up @@ -109,6 +109,8 @@ cmake -G "Visual Studio 9 2008" ^
-D QT_PNG_LIBRARY=%O4W_ROOT%/lib/libpng13.lib ^
-D QWT_INCLUDE_DIR=%O4W_ROOT%/include/qwt ^
-D QWT_LIBRARY=%O4W_ROOT%/lib/qwt5.lib ^
-D ZLIB_INCLUDE_DIR=%O4W_ROOT%/include ^
-D ZLIB_LIBRARY=%O4W_ROOT%/lib/zlib.lib ^
-D CMAKE_INSTALL_PREFIX=%O4W_ROOT%/apps/%PACKAGENAME% ^
-D CMAKE_CXX_FLAGS_RELWITHDEBINFO="/MD /ZI /Od /D NDEBUG" ^
-D FCGI_INCLUDE_DIR=%O4W_ROOT%/include ^
Expand Down
2 changes: 2 additions & 0 deletions src/core/CMakeLists.txt
Expand Up @@ -178,6 +178,8 @@ SET(QGIS_CORE_SRCS
)

IF(HAVE_ZLIB)
ADD_DEFINITIONS(-DQUAZIP_BUILD)

SET(QGIS_CORE_SRCS
${QGIS_CORE_SRCS}
quazip/unzip.c
Expand Down

1 comment on commit f7c6b62

@etiennesky
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, Jurgen!

Please sign in to comment.