guess what? merge 0.9.15 again...
authorkoda
Wed, 02 Feb 2011 23:21:14 +0100
changeset 4910 9dcb2e83b24f
parent 4909 dc6482438674 (current diff)
parent 4775 663aa9552bfc (diff)
child 4911 5d10bd725efe
guess what? merge 0.9.15 again...
QTfrontend/CMakeLists.txt
--- 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()
 
--- a/tools/CMakeLists.txt	Wed Feb 02 22:19:10 2011 +0300
+++ b/tools/CMakeLists.txt	Wed Feb 02 23:21:14 2011 +0100
@@ -16,7 +16,14 @@
 	find_package(SDL_ttf REQUIRED)
 	find_package(SDL_mixer REQUIRED)
 	find_package(OGGVORBIS REQUIRED)
-	find_package(SPARKLE)
+        if(NOT NOAUTOUPDATE)
+		find_package(SPARKLE)
+		if(SPARKLE_FOUND)
+			set(SPARKLE_FOUND 1)
+		else()
+			set(SPARKLE_FOUND 0)
+		endif()
+	endif()
 
 	#use the associated tool from the libraries we've selected
 	string(REGEX REPLACE "(.*)/include.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}")
@@ -35,12 +42,6 @@
 
 	string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}")
 
-	if(SPARKLE_FOUND)
-		set(SPARKLE_FOUND 1)
-	else()
-		set(SPARKLE_FOUND 0)
-	endif()
-
 	CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CreateMacBundle.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake)
 
 endif(APPLE AND BUNDLE)