Skip to content

Commit

Permalink
CMake: Use find_package for qtsparkle
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Jan 12, 2025
1 parent 8a9db54 commit e5b6c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -1518,7 +1518,7 @@ target_link_libraries(strawberry_lib PUBLIC
$<$<BOOL:${HAVE_AUDIOCD}>:PkgConfig::LIBCDIO>
$<$<BOOL:${HAVE_MTP}>:PkgConfig::LIBMTP>
$<$<BOOL:${HAVE_GPOD}>:PkgConfig::LIBGPOD PkgConfig::GDK_PIXBUF>
$<$<BOOL:${HAVE_QTSPARKLE}>:PkgConfig::QTSPARKLE>
$<$<BOOL:${HAVE_QTSPARKLE}>:qtsparkle-qt${QT_VERSION_MAJOR}::qtsparkle>
$<$<BOOL:${WIN32}>:dsound dwmapi getopt-win::getopt>
$<$<BOOL:${MSVC}>:WindowsApp>
${SINGLEAPPLICATION_LIBRARIES}
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5b6c59

Please sign in to comment.