Skip to content

Commit

Permalink
No reason to search for rapidsjson header, it was causing problems on…
Browse files Browse the repository at this point in the history
… some systems due to CMake being less than awesome. Just set the include path and assume it's correct because we put it there.
  • Loading branch information
khuck committed Oct 8, 2024
1 parent 5e91f3d commit 00106cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -909,10 +909,8 @@ git_external(rapidjson
master
VERBOSE)

find_path(
RAPIDJSON_INCLUDE_DIR
NAMES rapidjson
PATHS ${PROJECT_SOURCE_DIR}/rapidjson/include)
# no reason to search, just set the include path for the header-only library.
set(RAPIDJSON_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/rapidjson/include)

if(RAPIDJSON_INCLUDE_DIR)
message(INFO " Found rapidjson at ${RAPIDJSON_INCLUDE_DIR}")
Expand Down

0 comments on commit 00106cf

Please sign in to comment.