Skip to content

Commit

Permalink
fixing cmake problem
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei1949 committed Jun 7, 2024
1 parent 6c8cfd1 commit eb53059
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 9 additions & 1 deletion flex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,20 @@ find_package(Boost REQUIRED COMPONENTS system filesystem
context program_options regex thread date_time)
add_definitions("-DBOOST_BIND_GLOBAL_PLACEHOLDERS")

#find hiactor----------------------------------------------------------------------
find_package(Hiactor)
if (NOT Hiactor_FOUND)
message(STATUS "hiactor not found, please install the hiactor library")
else ()
include_directories(SYSTEM ${Hiactor_INCLUDE_DIRS})
endif()

#find arrow----------------------------------------------------------------------
find_package(Arrow REQUIRED)
if (NOT Arrow_FOUND)
message(FATAL_ERROR "arrow not found, please install the arrow library")
else ()
include_directories(SYSTEM ${ARROW_INCLUDE_DIRS})
include_directories(SYSTEM ${ARROW_INCLUDE_DIR})
if (TARGET arrow_shared)
set(ARROW_SHARED_LIB arrow_shared)
endif()
Expand Down
2 changes: 0 additions & 2 deletions flex/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
find_package(Hiactor)

if(Hiactor_FOUND)
add_executable(rt_server rt_server.cc)
target_link_libraries(rt_server flex_utils flex_rt_mutable_graph flex_graph_db flex_server)
Expand Down
4 changes: 2 additions & 2 deletions flex/engines/graph_db/grin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ if (GLOG_FOUND)
endif ()

#find arrow----------------------------------------------------------------------
include("../../../../flex/cmake/FindArrow.cmake")
find_package(Arrow REQUIRED)
if (NOT ARROW_FOUND)
message(FATAL_ERROR "arrow not found, please install the arrow library")
else ()
include_directories(SYSTEM ${ARROW_INCLUDE_DIRS})
include_directories(SYSTEM ${ARROW_INCLUDE_DIR})
if (TARGET arrow_shared)
set(ARROW_SHARED_LIB arrow_shared)
endif()
Expand Down

0 comments on commit eb53059

Please sign in to comment.