QTfrontend/CMakeLists.txt
changeset 4910 9dcb2e83b24f
parent 4812 f924be23ffb4
parent 4775 663aa9552bfc
child 5019 e38d1720a0ff
--- 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()