Update llvm.cmake

This commit is contained in:
alexey-milovidov 2021-05-01 08:08:36 +03:00 committed by GitHub
parent 012620b71d
commit 37ce69d40e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,9 +26,11 @@ endif ()
if (NOT USE_INTERNAL_LLVM_LIBRARY)
set (LLVM_PATHS "/usr/local/lib/llvm")
foreach(llvm_v 11.1 11)
if (NOT LLVM_FOUND)
find_package (LLVM 11.1 11 CONFIG PATHS ${LLVM_PATHS})
find_package (LLVM ${llvm_v} CONFIG PATHS ${LLVM_PATHS})
endif ()
endforeach ()
if (LLVM_FOUND)
# Remove dynamically-linked zlib and libedit from LLVM's dependencies: