diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-10-22 17:16:39 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-10-22 17:16:39 +0000 |
commit | 8523d81f3ed13914cafa953233b79cdd8a3eb75c (patch) | |
tree | 7221f171dc9be2c7d838a04865e05c6f8dfb056a | |
parent | 58faf20b459f33c33f752d6d9ee910e59e0ea1bb (diff) |
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/cfe/trunk@117110 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Basic/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Basic/CMakeLists.txt b/lib/Basic/CMakeLists.txt index 87bf834c27..3f737e7d9d 100644 --- a/lib/Basic/CMakeLists.txt +++ b/lib/Basic/CMakeLists.txt @@ -17,7 +17,9 @@ add_clang_library(clangBasic # Determine Subversion revision. # FIXME: This only gets updated when CMake is run, so this revision number # 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") Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG) set_source_files_properties(Version.cpp |