From 8523d81f3ed13914cafa953233b79cdd8a3eb75c Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Fri, 22 Oct 2010 17:16:39 +0000 Subject: [PATCH] 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 --- lib/Basic/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.40.0