|
|
|
@ -116,11 +116,11 @@ find_library(LIBCLANG_LIBRARY NAMES libclang.imp libclang clang |
|
|
|
DOC "The file that corresponds to the libclang library.") |
|
|
|
DOC "The file that corresponds to the libclang library.") |
|
|
|
|
|
|
|
|
|
|
|
if (NOT LIBCLANG_INCLUDE_DIR) |
|
|
|
if (NOT LIBCLANG_INCLUDE_DIR) |
|
|
|
execute_process(COMMAND /opt/homebrew/opt/llvm/bin/llvm-config --includedir OUTPUT_VARIABLE LIBCLANG_INCLUDE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) |
|
|
|
execute_process(COMMAND llvm-config --includedir OUTPUT_VARIABLE LIBCLANG_INCLUDE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if (NOT LIBCLANG_LIBRARY) |
|
|
|
if (NOT LIBCLANG_LIBRARY) |
|
|
|
execute_process(COMMAND /opt/homebrew/opt/llvm/bin/llvm-config --libdir OUTPUT_VARIABLE LIBCLANG_LIBRARY_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) |
|
|
|
execute_process(COMMAND llvm-config --libdir OUTPUT_VARIABLE LIBCLANG_LIBRARY_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) |
|
|
|
find_library(LIBCLANG_LIBRARY NAMES libclang.imp libclang clang PATHS $LIBCLANG_LIBRARY_DIR) |
|
|
|
find_library(LIBCLANG_LIBRARY NAMES libclang.imp libclang clang PATHS $LIBCLANG_LIBRARY_DIR) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|