forked from OSchip/llvm-project
Don't try to guess svn version when current path is a symlink.
See PR 8473. llvm-svn: 117109
This commit is contained in:
parent
22261600a8
commit
26b1d20b98
|
@ -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