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.
1 files changed, 3 insertions(+), 3 deletions(-)
CMakeLists.txt+3-3
| ... | ... | @@ -104,9 +104,9 @@ else() |
| 104 | 104 | set(ZIG_USE_LLVM_CONFIG OFF CACHE BOOL "use llvm-config to find LLVM libraries") |
| 105 | 105 | endif() |
| 106 | 106 | |
| 107 | | find_package(llvm) |
| 108 | | find_package(clang) |
| 109 | | find_package(lld) |
| 107 | find_package(llvm 13) |
| 108 | find_package(clang 13) |
| 109 | find_package(lld 13) |
| 110 | 110 | |
| 111 | 111 | if(ZIG_STATIC_ZLIB) |
| 112 | 112 | list(REMOVE_ITEM LLVM_LIBRARIES "-lz") |