From 00106cf94136012f61079fecbc88d317c98575f6 Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Mon, 7 Oct 2024 18:00:52 -0700 Subject: [PATCH] No reason to search for rapidsjson header, it was causing problems on some systems due to CMake being less than awesome. Just set the include path and assume it's correct because we put it there. --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55b0cc9f..99c12d39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")