LLVM

hunter_add_package(LLVM)
find_package(LLVM CONFIG REQUIRED)

include_directories(${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})
llvm_map_components_to_libnames(llvm_libs support core)

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC ${llvm_libs})

Usage issues

  • Exceptions are not available, need to build with _HAS_EXCEPTION=0 (Visual Studio)