|
|
@@ -7,6 +7,7 @@ find_package(OpenSSL REQUIRED)
|
|
|
find_package(PkgConfig)
|
|
|
if(PKG_CONFIG_FOUND)
|
|
|
pkg_check_modules(LZ4 QUIET liblz4)
|
|
|
+ pkg_check_modules(yyjson REQUIRED yyjson)
|
|
|
# v1.9.4 — jemalloc replaces glibc malloc for the smartbotic-database
|
|
|
# binary. The fragmentation pattern from per-RPC nlohmann::json node
|
|
|
# churn (107k 33-byte allocations observed on Zoe) defeats glibc's
|
|
|
@@ -81,6 +82,9 @@ if(LZ4_FOUND)
|
|
|
target_include_directories(smartbotic-database PRIVATE ${LZ4_INCLUDE_DIRS})
|
|
|
endif()
|
|
|
|
|
|
+target_include_directories(smartbotic-database PRIVATE ${yyjson_INCLUDE_DIRS})
|
|
|
+target_link_libraries(smartbotic-database PRIVATE ${yyjson_LIBRARIES})
|
|
|
+
|
|
|
# v1.9.4 — jemalloc allocator (overrides glibc malloc/free)
|
|
|
if(JEMALLOC_FOUND)
|
|
|
target_compile_definitions(smartbotic-database PRIVATE HAVE_JEMALLOC)
|