--- a/QTfrontend/CMakeLists.txt Tue Feb 01 00:12:19 2011 +0100
+++ b/QTfrontend/CMakeLists.txt Wed Feb 02 09:23:42 2011 +0100
@@ -171,11 +171,13 @@
set(hwfr_src ${hwfr_src} InstallController.cpp CocoaInitializer.mm M3Panel.mm M3InstallController.m NSWorkspace_RBAdditions.m)
set(HW_LINK_LIBS IOKit)
- find_package(Sparkle)
- if(SPARKLE_FOUND)
- add_definitions(-DSPARKLE_ENABLED)
- set(hwfr_src ${hwfr_src} AutoUpdater.cpp SparkleAutoUpdater.mm)
- set(HW_LINK_LIBS ${SPARKLE_LIBRARY} ${HW_LINK_LIBS})
+ if(NOT NOAUTOUPDATE)
+ find_package(Sparkle)
+ if(SPARKLE_FOUND)
+ add_definitions(-DSPARKLE_ENABLED)
+ set(hwfr_src ${hwfr_src} AutoUpdater.cpp SparkleAutoUpdater.mm)
+ set(HW_LINK_LIBS ${SPARKLE_LIBRARY} ${HW_LINK_LIBS})
+ endif()
endif()
endif()