Permalink
Browse files

Look harder for llvm-config

  • Loading branch information...
Andersbakken committed Apr 17, 2018
1 parent 4747d5b commit 869e89bb4671d72a2a293e1162116d5d720dab10
Showing with 3 additions and 2 deletions.
  1. +3 −2 cmake/FindLibClang.cmake
@@ -49,8 +49,8 @@ if (NOT LIBCLANG_LLVM_CONFIG_EXECUTABLE)
foreach(major RANGE 9 3)
foreach(minor RANGE 9 0)
foreach(patch RANGE 9 0)
# message(STATUS "trying llvm-config llvm-config${major}${minor} in /usr/local/Cellar/llvm/${major}.${minor}.${patch}/bin")
find_program(LIBCLANG_LLVM_CONFIG_EXECUTABLE NAMES llvm-config llvm-config${major}${minor} PATHS /usr/local/Cellar/llvm/${major}.${minor}.${patch}/bin)
message(STATUS "trying llvm-config llvm-config${major}${minor} in /usr/local/Cellar/llvm/${major}.${minor}.${patch}/bin")
find_program(LIBCLANG_LLVM_CONFIG_EXECUTABLE NAMES llvm-config llvm-config${major}${minor} llvm-config-${major}${minor} llvm-config-${major} llvm-config${major} PATHS /usr/local/Cellar/llvm/${major}.${minor}.${patch}/bin)
if (LIBCLANG_LLVM_CONFIG_EXECUTABLE)
break()
endif ()
@@ -66,6 +66,7 @@ if (NOT LIBCLANG_LLVM_CONFIG_EXECUTABLE)
else ()
set(llvm_config_names llvm-config)
foreach(major RANGE 9 3)
list(APPEND llvm_config_names "llvm-config${major}" "llvm-config-${major}")
foreach(minor RANGE 9 0)
list(APPEND llvm_config_names "llvm-config${major}${minor}" "llvm-config-${major}.${minor}" "llvm-config-mp-${major}.${minor}")
endforeach ()

0 comments on commit 869e89b

Please sign in to comment.