1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

Only try to build with QtSparkle if it has been found.

This commit is contained in:
Patrick von Reth
2015-09-04 14:57:36 +02:00
parent 16b4cb93d8
commit c8c1affca2
2 changed files with 3 additions and 3 deletions

View File

@@ -15,12 +15,12 @@
#cmakedefine WITH_CRASHREPORTER
#cmakedefine WITH_BINARY_ATTICA
#cmakedefine WITH_QtSparkle
#cmakedefine WITH_UPOWER
#cmakedefine WITH_GNOMESHORTCUTHANDLER
#cmakedefine LIBLASTFM_FOUND
#cmakedefine QCA2_FOUND
#cmakedefine QtSparkle_FOUND
#cmakedefine TOMAHAWK_FINEGRAINED_MESSAGES
#cmakedefine COMPLEX_TAGLIB_FILENAME

View File

@@ -88,7 +88,7 @@
#include "config.h"
#if defined( Q_OS_WIN )
#if defined ( WITH_QtSparkle )
#if defined ( QtSparkle_FOUND )
#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 )
#include <qtsparkle/Updater>
#else
@@ -521,7 +521,7 @@ TomahawkWindow::setupUpdateCheck()
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE )
connect( ActionCollection::instance()->getAction( "checkForUpdates" ), SIGNAL( triggered( bool ) ),
SLOT( checkForUpdates() ) );
#elif defined( Q_OS_WIN ) && defined( WITH_QtSparkle )
#elif defined( Q_OS_WIN ) && defined( QtSparkle_FOUND )
QUrl updaterUrl;
if ( qApp->arguments().contains( "--debug" ) )