From f8dcba8435a2ef51745e3b22842a4332091445b8 Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Thu, 29 Apr 2021 22:45:15 +0300 Subject: [PATCH] Updated llvm search version --- cmake/find/llvm.cmake | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmake/find/llvm.cmake b/cmake/find/llvm.cmake index 0025cc0f9d3..ea0ba0a8a3b 100644 --- a/cmake/find/llvm.cmake +++ b/cmake/find/llvm.cmake @@ -26,11 +26,9 @@ endif () if (NOT USE_INTERNAL_LLVM_LIBRARY) set (LLVM_PATHS "/usr/local/lib/llvm") - foreach(llvm_v 12 11) - if (NOT LLVM_FOUND) - find_package (LLVM ${llvm_v} CONFIG PATHS ${LLVM_PATHS}) - endif () - endforeach () + if (NOT LLVM_FOUND) + find_package (LLVM 11...<12 CONFIG PATHS ${LLVM_PATHS}) + endif () if (LLVM_FOUND) # Remove dynamically-linked zlib and libedit from LLVM's dependencies: