Skip to content

Instantly share code, notes, and snippets.

@muesli
Last active August 29, 2015 14:14
Show Gist options
  • Save muesli/f567e2f8f1e1147db649 to your computer and use it in GitHub Desktop.
Save muesli/f567e2f8f1e1147db649 to your computer and use it in GitHub Desktop.
quazip Qt5 fix
Index: quazip/quazip/CMakeLists.txt
===================================================================
--- quazip/quazip/CMakeLists.txt (revision 251)
+++ quazip/quazip/CMakeLists.txt (working copy)
@@ -17,7 +17,7 @@
add_library(quazip SHARED ${SRCS})
set_target_properties(quazip PROPERTIES VERSION 1.0.0 SOVERSION 1)
# Link against ZLIB_LIBRARIES if needed (on Windows this variable is empty)
-target_link_libraries(quazip ${QT_QTMAIN_LIBRARY} ${QT_QTCORE_LIBRARY} ${ZLIB_LIBRARIES})
+target_link_libraries(quazip ${QT_QTMAIN_LIBRARY} ${QT_QTCORE_LIBRARY} ${QTCORE_LIBRARIES} ${ZLIB_LIBRARIES})
install(FILES ${PUBLIC_HEADERS} DESTINATION include/quazip)
install(TARGETS quazip LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment