Commit b21b75ae authored by CHARRAS's avatar CHARRAS

an ugly fix to build minizip under windows( ugly, but it works for me)

If anyone can refine this, it is welcomed (see minizip/CMakeLists.txt for comments)
parent 67ebe29b
......@@ -6,6 +6,12 @@ ELSE(ZLIB_FOUND)
IF (NOT MINGW)
MESSAGE(FATAL_ERROR
"zlib was not found - it is required to build KiCad")
ELSE (NOT MINGW)
# zlib is not installed, and in this case wxWidgets creates its own zlib library
# include files are in ${wxWidgets_ROOT_DIR}/src/zlib
#and the corresponding library is libwxzlib-<version>.a ( like libwxzlib-2.8.a)
# and we try to use it
INCLUDE_DIRECTORIES(${wxWidgets_ROOT_DIR}/src/zlib)
ENDIF (NOT MINGW)
ENDIF(ZLIB_FOUND)
......@@ -16,6 +22,6 @@ SET(MINIZIP_SRCS
ADD_EXECUTABLE(minizip ${MINIZIP_SRCS} )
TARGET_LINK_LIBRARIES(minizip ${ZLIB_LIBRARIES})
TARGET_LINK_LIBRARIES(minizip ${ZLIB_LIBRARIES} ${wxWidgets_LIBRARIES})
INSTALL(TARGETS minizip RUNTIME DESTINATION bin COMPONENT binary)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment