mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
Cmake: Specify LLVM versions
Systems with multiple LLVM toolchains installed (e.g. one globally and one in $HOME/local) would get confused and fail to compile. Being explicit about the version required will force CMake to find the right version of LLVM.
This commit is contained in:
parent
3534f8a3ed
commit
e04ab39036
@ -104,9 +104,9 @@ else()
|
||||
set(ZIG_USE_LLVM_CONFIG OFF CACHE BOOL "use llvm-config to find LLVM libraries")
|
||||
endif()
|
||||
|
||||
find_package(llvm)
|
||||
find_package(clang)
|
||||
find_package(lld)
|
||||
find_package(llvm 13)
|
||||
find_package(clang 13)
|
||||
find_package(lld 13)
|
||||
|
||||
if(ZIG_STATIC_ZLIB)
|
||||
list(REMOVE_ITEM LLVM_LIBRARIES "-lz")
|
||||
|
Loading…
Reference in New Issue
Block a user