diff --git a/CMakeLists.txt b/CMakeLists.txt index 38b165d..80d3508 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,6 +70,20 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(simdutf) +FetchContent_Declare( + llhttp + URL "https://github.com/nodejs/llhttp/archive/refs/tags/release/v9.2.1.tar.gz" + URL_HASH + SHA256=3c163891446e529604b590f9ad097b2e98b5ef7e4d3ddcf1cf98b62ca668f23e + DOWNLOAD_EXTRACT_TIMESTAMP ON) +set(BUILD_SHARED_LIBS + OFF + CACHE INTERNAL "") +set(BUILD_STATIC_LIBS + ON + CACHE INTERNAL "") +FetchContent_MakeAvailable(llhttp) + include_directories(src) find_package(weaseljson REQUIRED)