[llvm-commits] [llvm] r117109 - /llvm/trunk/cmake/modules/VersionFromVCS.cmake
Oscar Fuentes
ofv at wanadoo.es
Fri Oct 22 10:16:26 PDT 2010
Author: ofv
Date: Fri Oct 22 12:16:26 2010
New Revision: 117109
URL: http://llvm.org/viewvc/llvm-project?rev=117109&view=rev
Log:
Don't try to guess svn version when current path is a symlink.
See PR 8473.
Modified:
llvm/trunk/cmake/modules/VersionFromVCS.cmake
Modified: llvm/trunk/cmake/modules/VersionFromVCS.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/VersionFromVCS.cmake?rev=117109&r1=117108&r2=117109&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/VersionFromVCS.cmake (original)
+++ llvm/trunk/cmake/modules/VersionFromVCS.cmake Fri Oct 22 12:16:26 2010
@@ -4,9 +4,12 @@
function(add_version_info_from_vcs VERS)
set(result ${${VERS}})
- if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn )
+ if( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn" )
set(result "${result}svn")
- find_package(Subversion)
+ # FindSubversion does not work with symlinks. See PR 8437
+ if( NOT IS_SYMLINK "${CMAKE_CURRENT_SOURCE_DIR}" )
+ find_package(Subversion)
+ endif()
if( Subversion_FOUND )
subversion_wc_info( ${CMAKE_CURRENT_SOURCE_DIR} Project )
if( Project_WC_REVISION )
More information about the llvm-commits
mailing list