From c08cb14c6767bfab9d56772771e3538b46b8bd4a Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Tue, 28 Mar 2017 18:20:04 +0200 Subject: [CMake] Try to fix bug reported by #633. It looks like older LLVM versions that were built from SVN/git didn't have a patch version number (i.e. `3.4svn` rather than `3.4.0svn`). --- cmake/find_llvm.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/find_llvm.cmake') diff --git a/cmake/find_llvm.cmake b/cmake/find_llvm.cmake index 0df6b4b5..770fca84 100644 --- a/cmake/find_llvm.cmake +++ b/cmake/find_llvm.cmake @@ -86,7 +86,7 @@ else() "${LLVM_PACKAGE_VERSION}") else() # try x.y pattern - set(_llvm_version_regex "^([0-9]+)\\.([0-9]+)$") + set(_llvm_version_regex "^([0-9]+)\\.([0-9]+)(svn)?$") if ("${LLVM_PACKAGE_VERSION}" MATCHES "${_llvm_version_regex}") string(REGEX REPLACE "${_llvm_version_regex}" -- cgit 1.4.1