aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/FindLLVM.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindLLVM.cmake')
-rw-r--r--cmake/modules/FindLLVM.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/FindLLVM.cmake b/cmake/modules/FindLLVM.cmake
index 0e3e11b..e2391f2 100644
--- a/cmake/modules/FindLLVM.cmake
+++ b/cmake/modules/FindLLVM.cmake
@@ -97,8 +97,9 @@ find_program(LLVM_CONFIG_EXECUTABLE
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --version OUTPUT_VARIABLE REPORTED_LLVM_VERSION )
STRING(REPLACE "." "" REPORTED_LLVM_VERSION ${REPORTED_LLVM_VERSION})
+STRING(REPLACE "svn" "" REPORTED_LLVM_VERSION ${REPORTED_LLVM_VERSION})
if(NOT ${REPORTED_LLVM_VERSION} STREQUAL ${LLVM_VERSION})
- message(FATAL_ERROR "ERROR!: llvm-config reports different version that what is expected \(${REPORTED_LLVM_VERSION} != ${LLVM_VERSION}" \))
+ message(FATAL_ERROR "ERROR!: llvm-config reports different version than what is expected \(${REPORTED_LLVM_VERSION} != ${LLVM_VERSION}\)")
endif()
# Macro to build up list of llvm libraries