Fix compile with translations on Windows

This commit is contained in:
Jonas Kvinge 2020-01-03 02:07:37 +01:00
parent e912c59402
commit 31aa42c2fa
2 changed files with 3 additions and 10 deletions

View File

@ -107,10 +107,6 @@ pkg_check_modules(LIBPLIST libplist)
find_package(Gettext)
find_package(FFTW3)
if(WIN32)
find_package(ZLIB REQUIRED)
endif(WIN32)
# QT
set(QT_MIN_VERSION 5.5)
set(QT_COMPONENTS Core Concurrent Widgets Network Sql)
@ -128,7 +124,7 @@ if(WIN32)
list(APPEND QT_COMPONENTS WinExtras)
endif()
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED ${QT_COMPONENTS})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS ${QT_COMPONENTS})
set(QT_LIBRARIES ${Qt5Core_LIBRARIES} ${Qt5Concurrent_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Network_LIBRARIES} ${Qt5Sql_LIBRARIES})
@ -146,7 +142,7 @@ if(Qt5WinExtras_FOUND)
list(APPEND QT_LIBRARIES ${Qt5WinExtras_LIBRARIES})
endif()
find_package(Qt5LinguistTools CONFIG)
find_package(Qt5 ${QT_MIN_VERSION} QUIET COMPONENTS LinguistTools CONFIG)
if (Qt5LinguistTools_FOUND)
set(QT_LCONVERT_EXECUTABLE Qt5::lconvert)
endif()

View File

@ -1137,10 +1137,7 @@ if (APPLE)
endif (APPLE)
if (WIN32)
target_link_libraries(strawberry_lib
${ZLIB_LIBRARIES}
dsound
)
target_link_libraries(strawberry_lib dsound)
endif (WIN32)
if (UNIX AND NOT APPLE)