Improved CMake svn version detection message (especially under Windows, where it can be long)

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2882 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
pouillot 2010-10-13 22:00:47 +00:00
parent 1e3fb611c5
commit ce4538c4dc
1 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ IF(NEED_SVN_REV)
SET(SVN_FIND_REV_FAILED TRUE)
ENDIF(NOT SVNVERSION_EXEC)
IF(NOT SVN_FIND_REV_FAILED)
MESSAGE(STATUS "Looking for current subversion revision (may be long) ...")
EXECUTE_PROCESS(COMMAND ${SVNVERSION_EXEC}
${CMAKE_CURRENT_SOURCE_DIR}
--no-newline
@ -88,7 +89,7 @@ IF(NEED_SVN_REV)
STRING(TOLOWER ${SVN_REV} SVN_REV)
SET(VERSION_LONG "${VERSION_LONG}-r${SVN_REV}")
ENDIF(NOT SVN_FIND_REV_FAILED)
MESSAGE(STATUS "Looking for current subversion revision : found '${VERSION_LONG}'")
MESSAGE(STATUS "Found '${VERSION_LONG}'")
ELSE(NEED_SVN_REV)
SET(VERSION_LONG "${VERSION}")
ENDIF(NEED_SVN_REV)