From e7086b28c0095c9854c0e07fe7def1ceabd04340 Mon Sep 17 00:00:00 2001 From: jolavillette Date: Mon, 1 Jun 2026 16:36:29 +0200 Subject: [PATCH] fix(cmake): add missing target_include_directories for system rapidjson --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67c519ddf..6e93dd1bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -432,6 +432,9 @@ find_path( if(EXISTS "${RS_RAPIDJSON_INCLUDE}") message( STATUS "RapidJSON found in system at ${RS_RAPIDJSON_INCLUDE}" ) + target_include_directories( + ${PROJECT_NAME} + PUBLIC "${RS_RAPIDJSON_INCLUDE}" ) elseif(EXISTS "${RAPIDJSON_DEVEL_DIR}/CMakeLists.txt") message( STATUS "RapidJSON found in development dir at ${RAPIDJSON_DEVEL_DIR}" )