diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2017-03-28 18:20:04 +0200 |
---|---|---|
committer | Dan Liew <delcypher@gmail.com> | 2017-03-30 15:04:43 +0200 |
commit | c08cb14c6767bfab9d56772771e3538b46b8bd4a (patch) | |
tree | 71713e793d337c30f9912c7ec7858f58d5595e25 /cmake | |
parent | 0eb13665f0b0fb7d6a3d3015d1a1413236966339 (diff) | |
download | klee-c08cb14c6767bfab9d56772771e3538b46b8bd4a.tar.gz |
[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`).
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/find_llvm.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |