mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Don't try to guess svn version when current path is a symlink.
See PR 8473. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9463d0e400
commit
c54ca79854
@ -4,9 +4,12 @@
|
||||
|
||||
function(add_version_info_from_vcs VERS)
|
||||
set(result ${${VERS}})
|
||||
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn )
|
||||
if( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn" )
|
||||
set(result "${result}svn")
|
||||
find_package(Subversion)
|
||||
# FindSubversion does not work with symlinks. See PR 8437
|
||||
if( NOT IS_SYMLINK "${CMAKE_CURRENT_SOURCE_DIR}" )
|
||||
find_package(Subversion)
|
||||
endif()
|
||||
if( Subversion_FOUND )
|
||||
subversion_wc_info( ${CMAKE_CURRENT_SOURCE_DIR} Project )
|
||||
if( Project_WC_REVISION )
|
||||
|
Loading…
Reference in New Issue
Block a user