| 1 |
# CCI pakage appears to set the wrong value for the `cmake_target_name` |
| 2 |
|
| 3 |
if(NOT ${_OPT}use_rapidjson STREQUAL "off") |
| 4 |
if(NOT TARGET rapidjson::rapidjson) |
| 5 |
if(TARGET rapidjson) |
| 6 |
add_library( rapidjson::rapidjson ALIAS rapidjson ) |
| 7 |
else() |
| 8 |
# At least on Arch RapidJSONConfig.cmake does not define a target at all |
| 9 |
# so we have to do it ourselves |
| 10 |
add_library( rapidjson::rapidjson INTERFACE IMPORTED GLOBAL) |
| 11 |
if (RAPIDJSON_INCLUDE_DIRS ) |
| 12 |
target_include_directories( rapidjson::rapidjson INTERFACE ${RAPIDJSON_INCLUDE_DIRS} ) |
| 13 |
elseif(RapidJSON_INCLUDE_DIR) |
| 14 |
target_include_directories( rapidjson::rapidjson INTERFACE ${RapidJSON_INCLUDE_DIR} ) |
| 15 |
endif() |
| 16 |
endif() |
| 17 |
endif() |
| 18 |
endif() |