Skip to content
Snippets Groups Projects
Commit 97f93c2e authored by Christoph Rosemann's avatar Christoph Rosemann
Browse files

Determine global svn revision and store its value in a cmake variable.

parent e83cb2af
No related branches found
No related tags found
No related merge requests found
EXECUTE_PROCESS( COMMAND "svnversion"
OUTPUT_VARIABLE GLOBAL_SVN_REVISION
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
RESULT_VARIABLE _exit_code
)
IF( NOT _exit_code EQUAL 0 )
MESSAGE( STATUS "Couldn't retrieve a version number from SVN to set in documentation.")
SET(GLOBAL_SVN_REVISION "NoNumberAvailable")
ENDIF()
MESSAGE(STATUS "Found global svn revision to be ${GLOBAL_SVN_REVISION}.")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment