From: Tim Goya Date: Sun, 2 Nov 2008 19:21:49 +0000 (+0000) Subject: Use svnversion program rather than finding the svn package to get revision number X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8b8e1c3576cedddb1d88eafa5fd4804e8257793c;p=supertux.git Use svnversion program rather than finding the svn package to get revision number SVN-Revision: 5818 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fedd77a6c..0593305d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,11 +128,13 @@ ENDIF(CURL_FOUND) #LINK_LIBRARIES(${ICONV_LIBRARY}) ## Find revision of WC -FIND_PACKAGE(Subversion) -IF(Subversion_FOUND) - Subversion_WC_INFO(${SUPERTUX_SOURCE_DIR} SUPERTUX) +MARK_AS_ADVANCED(SVNVERSION_EXECUTABLE) +FIND_PROGRAM(SVNVERSION_EXECUTABLE svnversion) +IF(SVNVERSION_EXECUTABLE) + EXECUTE_PROCESS(COMMAND svnversion -n ${SUPERTUX_SOURCE_DIR} + OUTPUT_VARIABLE SUPERTUX_WC_REVISION) SET(REVISION " r${SUPERTUX_WC_REVISION}") -ENDIF(Subversion_FOUND) +ENDIF(SVNVERSION_EXECUTABLE) ## Check platform-dependent build options