search for: git_svn_rev

Displaying 1 result from an estimated 1 matches for "git_svn_rev".

2014 May 13
2
[LLVMdev] [PATCH] CMake add_version_info_from_vcs SVN_REPOSITORY
...OURCE_DIR}/.git/svn ) - find_program(git_executable NAMES git git.exe git.cmd) - if( git_executable ) + find_program(git_executable NAMES git git.exe git.cmd) + if( git_executable ) + # Try to get a ref-id + if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/svn ) set(is_git_svn_rev_exact false) execute_process(COMMAND ${git_executable} svn log --limit=1 --oneline WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} @@ -36,7 +41,16 @@ function(add_version_info_from_vcs VERS) string(SUBSTRING "${git_svn_rev}" 1 ${rev_length} git_svn_rev_number)...