Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Fail loudly when found rapidjson is too old (MaskRay#646)
When the rapidjson found by cmake is an older version it defines a variable RAPIDJSON_INCLUDE_DIRS instead of RapidJSON_INCLUDE_DIRS (MaskRay#455). According to MaskRay#383 we do not want to make these older version work with ccls. However currently if the rapidjson found by cmake is an older version that defined RAPIDJSON_INCLUDE_DIRS, then the cmake invocation still succeeds but any build command will fail because RapidJSON_INCLUDE_DIRS was never set properly. This makes the cmake invocation fail with a relevant error message in this event.
- Loading branch information