From e2c2a52f794e0e47c06ddc44cbd2928b23e0b497 Mon Sep 17 00:00:00 2001 From: gvolfing Date: Sun, 21 Aug 2022 21:27:01 +0200 Subject: [PATCH] Enable thrift for memgraph --- src/CMakeLists.txt | 3 ++- src/memgraph.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3a239dda2..a0d8ea58a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,5 @@ # CMake configuration for the main memgraph library and executable +include(MgThrift) # add memgraph sub libraries, ordered by dependency add_subdirectory(interface) @@ -42,7 +43,7 @@ set(mg_single_node_v2_sources ) set(mg_single_node_v2_libs stdc++fs Threads::Threads - telemetry_lib mg-query mg-communication mg-memory mg-utils mg-auth mg-license mg-settings) + telemetry_lib mg-query mg-communication mg-memory mg-utils mg-auth mg-license mg-settings FBThrift::thriftcpp2) if (MG_ENTERPRISE) # These are enterprise subsystems set(mg_single_node_v2_libs ${mg_single_node_v2_libs} mg-audit) diff --git a/src/memgraph.cpp b/src/memgraph.cpp index d4fc3bad1..1852c003e 100644 --- a/src/memgraph.cpp +++ b/src/memgraph.cpp @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -1054,6 +1055,8 @@ int main(int argc, char **argv) { LoadConfig("memgraph"); gflags::ParseCommandLineFlags(&argc, &argv, true); + folly::Init(&argc, &argv); + InitializeLogger(); // Unhandled exception handler init.