Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use system rapidjson, fall back to bundled.
Currently the `rapidjson` headers are hard-coded into `davix_gcloud_utils.cpp` in a way that makes it difficult to use external/system provided rapidjson headers rather than the bundled ones. This commit uses `find_package` to look for an external instance of rapidjson, falling back to the bundled version in `src/libs/rapidjson` if that search fails. In either case, it sets up the variable `RAPIDJSON_INCLUDE_DIRS` pointing to the location of the headers and adds this to the list of `DAVIX_INTERNAL_INCLUDES` to allow the location to be included during compilation (via `-I${RAPIDJSON_INCLUDE_DIRS}`). Finally, it modifies the `#include` in `davix_gcloud_utils.cpp` to support a generic location.
- Loading branch information