mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
CMake: Don't run 'git svn' if there is no .git/svn directory.
If the local checkout does not have 'git svn' references set up, don't try to use 'git svn' for version information. llvm-svn: 169749
This commit is contained in:
parent
9c8e9c6edd
commit
14cbefa1f6
@ -20,6 +20,7 @@ function(add_version_info_from_vcs VERS)
|
||||
elseif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git )
|
||||
set(result "${result}git")
|
||||
# Try to get a ref-id
|
||||
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/svn )
|
||||
find_program(git_executable NAMES git git.exe git.cmd)
|
||||
if( git_executable )
|
||||
set(is_git_svn_rev_exact false)
|
||||
@ -66,5 +67,6 @@ function(add_version_info_from_vcs VERS)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
set(${VERS} ${result} PARENT_SCOPE)
|
||||
endfunction(add_version_info_from_vcs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user