diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 9ed57c2d2..44e33cc64 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -314,11 +314,11 @@ ExternalProject_Add(mgcxx-proj ExternalProject_Get_Property(mgcxx-proj install_dir) set(MGCXX_ROOT ${install_dir}) -add_library(tantivy_text_search STATIC IMPORTED) +add_library(tantivy_text_search STATIC IMPORTED GLOBAL) add_dependencies(tantivy_text_search mgcxx-proj) set_property(TARGET tantivy_text_search PROPERTY IMPORTED_LOCATION ${MGCXX_ROOT}/lib/libtantivy_text_search.a) -add_library(mgcxx_text_search STATIC IMPORTED) +add_library(mgcxx_text_search STATIC IMPORTED GLOBAL) add_dependencies(mgcxx_text_search mgcxx-proj) set_property(TARGET mgcxx_text_search PROPERTY IMPORTED_LOCATION ${MGCXX_ROOT}/lib/libmgcxx_text_search.a) # We need to create the include directory first in order to be able to add it diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ab6a8c54d..c5b0cde9e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -41,7 +41,7 @@ set(mg_single_node_v2_sources add_executable(memgraph ${mg_single_node_v2_sources}) target_include_directories(memgraph PUBLIC ${CMAKE_SOURCE_DIR}/include) target_link_libraries(memgraph stdc++fs Threads::Threads - mg-telemetry mg-communication mg-communication-metrics mg-memory mg-utils mg-license mg-settings mg-glue mg-flags) + mg-telemetry mgcxx_text_search tantivy_text_search mg-communication mg-communication-metrics mg-memory mg-utils mg-license mg-settings mg-glue mg-flags) # NOTE: `include/mg_procedure.syms` describes a pattern match for symbols which # should be dynamically exported, so that `dlopen` can correctly link the