From f253fd3d2c070573ad86350c4b8495fb58766584 Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Tue, 4 Feb 2020 00:08:12 +0100 Subject: find_llvm.cmake: enable parsing for git version --- cmake/find_llvm.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake') diff --git a/cmake/find_llvm.cmake b/cmake/find_llvm.cmake index 8527221a..76418824 100644 --- a/cmake/find_llvm.cmake +++ b/cmake/find_llvm.cmake @@ -72,7 +72,7 @@ else() # Get LLVM version _run_llvm_config(LLVM_PACKAGE_VERSION "--version") # Try x.y.z patern - set(_llvm_version_regex "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(svn)?$") + set(_llvm_version_regex "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(svn|git)?$") if ("${LLVM_PACKAGE_VERSION}" MATCHES "${_llvm_version_regex}") string(REGEX REPLACE "${_llvm_version_regex}" @@ -91,7 +91,7 @@ else() "${LLVM_PACKAGE_VERSION}") else() # try x.y pattern - set(_llvm_version_regex "^([0-9]+)\\.([0-9]+)(svn)?$") + set(_llvm_version_regex "^([0-9]+)\\.([0-9]+)(svn|git)?$") if ("${LLVM_PACKAGE_VERSION}" MATCHES "${_llvm_version_regex}") string(REGEX REPLACE "${_llvm_version_regex}" -- cgit 1.4.1