1 FIND_PROGRAM(GIT_EXECUTABLE git DOC "git command line client")
4 COMMAND ${GIT_EXECUTABLE} svn info
5 COMMAND grep "Revision"
6 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
7 OUTPUT_VARIABLE VERSION
8 OUTPUT_STRIP_TRAILING_WHITESPACE
11 set( ${NAME} "unknown" )
14 FIND_PACKAGE(Subversion)
20 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
21 OUTPUT_VARIABLE VERSION
22 OUTPUT_STRIP_TRAILING_WHITESPACE
24 endif(Subversion_FOUND)
27 set( ${NAME} ${VERSION} )
30 string(REGEX REPLACE "Revision: " "" ${NAME} ${VERSION})
33 set(NAVIT_VARIANT "-")
35 message (STATUS "SVN-version ${${NAME}}")
36 CONFIGURE_FILE(${SRC} ${DST} @ONLY)