Don't download from LLVM website

This commit is contained in:
Jonathan Müller 2018-01-12 11:24:31 +01:00
commit 3e4a3e4037
2 changed files with 29 additions and 15 deletions

View file

@ -97,6 +97,10 @@ endfunction()
# find libclang using the config tool
# sets: LLVM_VERSION, LIBCLANG_INCLUDE_DIR, LIBCLANG_SYSTEM_INCLUDE_DIR, LIBCLANG_LIBRARY and CLANG_BINARY
function(_cppast_find_libclang config_tool min_version force)
if (NOT EXISTS "${LLVM_CONFIG_BINARY}")
message(FATAL_ERROR "LLVM config binary not found at ${LLVM_CONFIG_BINARY}")
endif()
# check version
execute_process(COMMAND ${LLVM_CONFIG_BINARY} --version
OUTPUT_VARIABLE llvm_version OUTPUT_STRIP_TRAILING_WHITESPACE)