cJSON
[Ported from github.com/DaveGamble/cJSON] Fix: heap-use-after-free in merge_patch when patch is subtree of target (#1065)
Brought by drakestapleton
cJSON / library_config / cJSONConfig.cmake.in
| 1 | # Whether the utils lib was build. |
| 2 | set(CJSON_UTILS_FOUND @ENABLE_CJSON_UTILS@) |
| 3 | |
| 4 | # The include directories used by cJSON |
| 5 | set(CJSON_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@") |
| 6 | set(CJSON_INCLUDE_DIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@") |
| 7 | |
| 8 | get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH) |
| 9 | |
| 10 | # The cJSON library |
| 11 | set(CJSON_LIBRARY "@CJSON_LIB@") |
| 12 | if(@ENABLE_TARGET_EXPORT@) |
| 13 | # Include the target |
| 14 | include("${_dir}/cjson.cmake") |
| 15 | endif() |
| 16 | |
| 17 | if(CJSON_UTILS_FOUND) |
| 18 | # The cJSON utils library |
| 19 | set(CJSON_UTILS_LIBRARY @CJSON_UTILS_LIB@) |
| 20 | # All cJSON libraries |
| 21 | set(CJSON_LIBRARIES "@CJSON_UTILS_LIB@" "@CJSON_LIB@") |
| 22 | if(@ENABLE_TARGET_EXPORT@) |
| 23 | # Include the target |
| 24 | include("${_dir}/cjson_utils.cmake") |
| 25 | endif() |
| 26 | else() |
| 27 | # All cJSON libraries |
| 28 | set(CJSON_LIBRARIES "@CJSON_LIB@") |
| 29 | endif() |