From c4db28821e112bd60dcde4caff79b3fd4634b238 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 26 Jul 2016 20:10:11 -1000 Subject: [PATCH] FindLLVM updates --- atdna/FindLLVM.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/atdna/FindLLVM.cmake b/atdna/FindLLVM.cmake index 8e0a825..729734d 100644 --- a/atdna/FindLLVM.cmake +++ b/atdna/FindLLVM.cmake @@ -33,7 +33,8 @@ if(WIN32) get_filename_component(LLVM_ROOT_DIR [HKEY_LOCAL_MACHINE\\Software\\LLVM\\LLVM] ABSOLUTE) endif() -set(llvm_config_names llvm-config-3.7 llvm-config37 +set(llvm_config_names llvm-config-3.8 llvm-config38 + llvm-config-3.7 llvm-config37 llvm-config-3.6 llvm-config36 llvm-config-3.5 llvm-config35 llvm-config-3.4 llvm-config34 @@ -144,7 +145,7 @@ else() ) file(TO_CMAKE_PATH "${tmplibs}" tmplibs) string(REGEX REPLACE "([$^.[|*+?()]|])" "\\\\\\1" pattern "${prefix}/") - string(REGEX MATCHALL "${pattern}[^ ]+" LLVM_${var} ${tmplibs}) + string(REGEX MATCHALL "${pattern}[^ ]+" "LLVM_${var}" "${tmplibs}") endmacro() llvm_set(VERSION_STRING version)