Skip to content

Commit

Permalink
fix(analytical): Fix the rapidjson find_package (#3492)
Browse files Browse the repository at this point in the history
as title
  • Loading branch information
acezen authored Jan 18, 2024
1 parent 76feb79 commit a383a34
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions analytical_engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ endif ()
find_package(libgrapelite REQUIRED)
include_directories(${LIBGRAPELITE_INCLUDE_DIRS})

if (NETWORKX)
find_package(RapidJSON REQUIRED)
if (DEFINED RapidJSON_INCLUDE_DIRS) # rapidjson > 1.1.0
include_directories(${RapidJSON_INCLUDE_DIRS})
else () # rapidjson <= 1.1.0
include_directories(${RAPIDJSON_INCLUDE_DIRS})
endif ()
endif ()

find_package(Protobuf CONFIG QUIET)
if (NOT Protobuf_FOUND)
find_package(Protobuf REQUIRED)
Expand Down

0 comments on commit a383a34

Please sign in to comment.