From 6e55f615813b0565a5e8e07941dedc7b2034cd26 Mon Sep 17 00:00:00 2001 From: prazzb Date: Mon, 13 Aug 2018 22:55:19 +0530 Subject: [PATCH] Find local llvm-config first Distro's llvm usually have a 6.0 suffix.Any custom llvm build names the binary as llvm-config.Keeping 6.0 variant first causes the distro's llvm to be compiled in place of a custom one even if given using CMAKE_PREFIX_PATH. --- cmake/Findllvm.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake index 021c3c6f27..da1758ff14 100644 --- a/cmake/Findllvm.cmake +++ b/cmake/Findllvm.cmake @@ -8,7 +8,7 @@ # LLVM_LIBDIRS find_program(LLVM_CONFIG_EXE - NAMES llvm-config-6.0 llvm-config + NAMES llvm-config llvm-config-6.0 PATHS "/mingw64/bin" "/c/msys64/mingw64/bin"