Fix mgcxx API integration
This commit is contained in:
parent
6fb4eb6099
commit
0c3220839c
@ -314,11 +314,11 @@ ExternalProject_Add(mgcxx-proj
|
|||||||
ExternalProject_Get_Property(mgcxx-proj install_dir)
|
ExternalProject_Get_Property(mgcxx-proj install_dir)
|
||||||
set(MGCXX_ROOT ${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)
|
add_dependencies(tantivy_text_search mgcxx-proj)
|
||||||
set_property(TARGET tantivy_text_search PROPERTY IMPORTED_LOCATION ${MGCXX_ROOT}/lib/libtantivy_text_search.a)
|
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)
|
add_dependencies(mgcxx_text_search mgcxx-proj)
|
||||||
set_property(TARGET mgcxx_text_search PROPERTY IMPORTED_LOCATION ${MGCXX_ROOT}/lib/libmgcxx_text_search.a)
|
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
|
# We need to create the include directory first in order to be able to add it
|
||||||
|
@ -41,7 +41,7 @@ set(mg_single_node_v2_sources
|
|||||||
add_executable(memgraph ${mg_single_node_v2_sources})
|
add_executable(memgraph ${mg_single_node_v2_sources})
|
||||||
target_include_directories(memgraph PUBLIC ${CMAKE_SOURCE_DIR}/include)
|
target_include_directories(memgraph PUBLIC ${CMAKE_SOURCE_DIR}/include)
|
||||||
target_link_libraries(memgraph stdc++fs Threads::Threads
|
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
|
# NOTE: `include/mg_procedure.syms` describes a pattern match for symbols which
|
||||||
# should be dynamically exported, so that `dlopen` can correctly link the
|
# should be dynamically exported, so that `dlopen` can correctly link the
|
||||||
|
Loading…
Reference in New Issue
Block a user