forked from OSchip/llvm-project
Don't try to guess svn version when current path is a symlink.
See PR 8473. llvm-svn: 117110
This commit is contained in:
parent
26b1d20b98
commit
ac1a614079
|
@ -17,7 +17,9 @@ add_clang_library(clangBasic
|
||||||
# Determine Subversion revision.
|
# Determine Subversion revision.
|
||||||
# FIXME: This only gets updated when CMake is run, so this revision number
|
# FIXME: This only gets updated when CMake is run, so this revision number
|
||||||
# may be out-of-date!
|
# may be out-of-date!
|
||||||
find_package(Subversion)
|
if( NOT IS_SYMLINK "${CLANG_SOURCE_DIR}" ) # See PR 8437
|
||||||
|
find_package(Subversion)
|
||||||
|
endif()
|
||||||
if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn")
|
if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn")
|
||||||
Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG)
|
Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG)
|
||||||
set_source_files_properties(Version.cpp
|
set_source_files_properties(Version.cpp
|
||||||
|
|
Loading…
Reference in New Issue