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:
parent
1e3fb611c5
commit
ce4538c4dc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue