diff --git a/CMakeLists.txt b/CMakeLists.txt index 17dec1c98..ca9c92a2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,7 +273,7 @@ endif() if(WIN32) find_package(getopt-win REQUIRED) if(USE_QTSPARKLE) - pkg_check_modules(QTSPARKLE REQUIRED IMPORTED_TARGET qtsparkle-qt${QT_VERSION_MAJOR}) + find_package(qtsparkle-qt${QT_VERSION_MAJOR} REQUIRED) set(HAVE_QTSPARKLE ON) endif() endif() @@ -1518,7 +1518,7 @@ target_link_libraries(strawberry_lib PUBLIC $<$:PkgConfig::LIBCDIO> $<$:PkgConfig::LIBMTP> $<$:PkgConfig::LIBGPOD PkgConfig::GDK_PIXBUF> - $<$:PkgConfig::QTSPARKLE> + $<$:qtsparkle-qt${QT_VERSION_MAJOR}::qtsparkle> $<$:dsound dwmapi getopt-win::getopt> $<$:WindowsApp> ${SINGLEAPPLICATION_LIBRARIES} diff --git a/src/main.cpp b/src/main.cpp index 9611c7244..451f626c4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -290,7 +290,7 @@ int main(int argc, char *argv[]) { translations->LoadTranslation(u"strawberry"_s, QDir::currentPath(), language); # ifdef HAVE_QTSPARKLE - //qtsparkle::LoadTranslations(language); + qtsparkle::LoadTranslations(language); # endif #endif