diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-10-24 20:32:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-10-24 20:32:58 +0000 |
commit | 5c14dcebdece3b2bb70ba0afa01f093676870b14 (patch) | |
tree | 502edd8f440e71ad52ee2747287857850b26dd37 /lib | |
parent | 7de7009a00ba502e49978fb9b8a7dcd5c2743151 (diff) |
Fix cmake failure trying to get SVN info for non-SVN trees.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Basic/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/CMakeLists.txt b/lib/Basic/CMakeLists.txt index 527ebf9659..1a89acc65a 100644 --- a/lib/Basic/CMakeLists.txt +++ b/lib/Basic/CMakeLists.txt @@ -18,7 +18,7 @@ add_clang_library(clangBasic # FIXME: This only gets updated when CMake is run, so this revision number # may be out-of-date! find_package(Subversion) -if (Subversion_FOUND) +if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn") Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG) set_source_files_properties(Version.cpp PROPERTIES COMPILE_DEFINITIONS "SVN_REVISION=\"${CLANG_WC_REVISION}\"") |