--- a/tools/CMakeLists.txt Tue Feb 01 00:12:19 2011 +0100
+++ b/tools/CMakeLists.txt Wed Feb 02 09:23:42 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)