From 37ce69d40e5b6d057a439821f91201fa03661389 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Sat, 1 May 2021 08:08:36 +0300 Subject: [PATCH] Update llvm.cmake --- cmake/find/llvm.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmake/find/llvm.cmake b/cmake/find/llvm.cmake index b4a11000f4f..56b345fa308 100644 --- a/cmake/find/llvm.cmake +++ b/cmake/find/llvm.cmake @@ -26,9 +26,11 @@ endif () if (NOT USE_INTERNAL_LLVM_LIBRARY) set (LLVM_PATHS "/usr/local/lib/llvm") - if (NOT LLVM_FOUND) - find_package (LLVM 11.1 11 CONFIG PATHS ${LLVM_PATHS}) - endif () + foreach(llvm_v 11.1 11) + if (NOT LLVM_FOUND) + find_package (LLVM ${llvm_v} CONFIG PATHS ${LLVM_PATHS}) + endif () + endforeach () if (LLVM_FOUND) # Remove dynamically-linked zlib and libedit from LLVM's dependencies: