[cfe-commits] r85015 - /cfe/trunk/lib/Basic/CMakeLists.txt
Daniel Dunbar
daniel at zuster.org
Sat Oct 24 13:32:58 PDT 2009
Author: ddunbar
Date: Sat Oct 24 15:32:58 2009
New Revision: 85015
URL: http://llvm.org/viewvc/llvm-project?rev=85015&view=rev
Log:
Fix cmake failure trying to get SVN info for non-SVN trees.
Modified:
cfe/trunk/lib/Basic/CMakeLists.txt
Modified: cfe/trunk/lib/Basic/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/CMakeLists.txt?rev=85015&r1=85014&r2=85015&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/CMakeLists.txt (original)
+++ cfe/trunk/lib/Basic/CMakeLists.txt Sat Oct 24 15:32:58 2009
@@ -18,7 +18,7 @@
# 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}\"")
More information about the cfe-commits
mailing list