forked from speed-dreams/speed-dreams-code
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 Former-commit-id: 7a5ebdb2d6c8c4479778a852b37b94d4a4f440b4 Former-commit-id: c33b0d18ea2aa31b07c641a33647429c2ff1366f
This commit is contained in:
parent
38a43bfdd3
commit
81bbe4a86f
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue