Don't download from LLVM website
This commit is contained in:
parent
3e8b2b429c
commit
3e4a3e4037
2 changed files with 29 additions and 15 deletions
4
external/external.cmake
vendored
4
external/external.cmake
vendored
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue