--- a/QTfrontend/CMakeLists.txt Wed Feb 02 22:19:10 2011 +0300
+++ b/QTfrontend/CMakeLists.txt Wed Feb 02 23:21:14 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()