Skip to content

Commit

Permalink
resolve find yaml-cpp problem
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei1949 committed Jun 7, 2024
1 parent eb53059 commit 15a6e64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions flex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ else ()
include_directories(SYSTEM ${GFLAGS_INCLUDE_DIRS})
endif ()

# find yaml-cpp-----------------------------------------------------------------
find_package(yaml-cpp REQUIRED)
include_directories(SYSTEM ${yaml-cpp_INCLUDE_DIRS})
if (NOT yaml-cpp_FOUND)
message(FATAL_ERROR "yaml-cpp not found, please install the yaml-cpp library")
endif ()

#find boost----------------------------------------------------------------------
find_package(Boost REQUIRED COMPONENTS system filesystem
# required by folly
Expand Down
3 changes: 0 additions & 3 deletions flex/engines/graph_db/grin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/../../../third_party/nloh
# include odps cpp sdk
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/../../../third_party/odps/include/)

find_package(yaml-cpp REQUIRED)
include_directories(SYSTEM ${yaml-cpp_INCLUDE_DIRS})

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../..)
Expand Down
2 changes: 0 additions & 2 deletions flex/storages/rt_mutable_graph/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

# find yaml-cpp
find_package(yaml-cpp REQUIRED)
include_directories(SYSTEM ${yaml-cpp_INCLUDE_DIRS})

file(GLOB_RECURSE RT_MUTABLE_GRAPH_SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.cc")
if (NOT BUILD_ODPS_FRAGMENT_LOADER)
Expand Down

0 comments on commit 15a6e64

Please sign in to comment.