interplane.Get Omega
Read in your language

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

branch master Branches Tags History

cJSON / library_config / cJSONConfig.cmake.in

29 lines · 802 bytes Raw Blame History
1# Whether the utils lib was build.
2set(CJSON_UTILS_FOUND @ENABLE_CJSON_UTILS@)
3
4# The include directories used by cJSON
5set(CJSON_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
6set(CJSON_INCLUDE_DIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
7
8get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
9
10# The cJSON library
11set(CJSON_LIBRARY "@CJSON_LIB@")
12if(@ENABLE_TARGET_EXPORT@)
13 # Include the target
14 include("${_dir}/cjson.cmake")
15endif()
16
17if(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()
26else()
27 # All cJSON libraries
28 set(CJSON_LIBRARIES "@CJSON_LIB@")
29endif()