mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-07 16:54:54 +00:00
Find rapidjson headers in rapidjson <= 1.1.0.
The CMake variable name was renamed in
b91c515afe
This commit is contained in:
parent
e496d4e5db
commit
12fc1d05bf
@ -152,6 +152,10 @@ if(USE_SYSTEM_RAPIDJSON)
|
|||||||
endif()
|
endif()
|
||||||
if(NOT RapidJSON_FOUND)
|
if(NOT RapidJSON_FOUND)
|
||||||
set(RapidJSON_INCLUDE_DIRS third_party/rapidjson/include)
|
set(RapidJSON_INCLUDE_DIRS third_party/rapidjson/include)
|
||||||
|
elseif(NOT RapidJSON_INCLUDE_DIRS)
|
||||||
|
# The variable name was changed in
|
||||||
|
# https://github.com/Tencent/rapidjson/commit/b91c515afea9f0ba6a81fc670889549d77c83db3
|
||||||
|
set(RapidJSON_INCLUDE_DIRS ${RAPIDJSON_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
target_include_directories(ccls SYSTEM PRIVATE ${RapidJSON_INCLUDE_DIRS})
|
target_include_directories(ccls SYSTEM PRIVATE ${RapidJSON_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user