Don't try to guess svn version when current path is a symlink.

See PR 8473.

llvm-svn: 117110
This commit is contained in:
Oscar Fuentes 2010-10-22 17:16:39 +00:00
parent 26b1d20b98
commit ac1a614079
1 changed files with 3 additions and 1 deletions

View File

@ -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