Enable thrift for memgraph

This commit is contained in:
gvolfing
2022-08-21 21:27:01 +02:00
parent 820c943e8a
commit e2c2a52f79
2 changed files with 5 additions and 1 deletions

View File

@@ -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)

View File

@@ -26,6 +26,7 @@
#include <thread>
#include <fmt/format.h>
#include <folly/init/Init.h>
#include <gflags/gflags.h>
#include <spdlog/common.h>
#include <spdlog/sinks/daily_file_sink.h>
@@ -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.