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}" )