File tree Expand file tree Collapse file tree 5 files changed +17
-1
lines changed
Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ if(_icey_have_libdatachannel AND DEFINED icey_FIND_COMPONENTS AND "webrtc" IN_LI
4444endif ()
4545
4646if (@USE_SYSTEM_DEPS@)
47+ if ("json" IN_LIST _icey_supported_components)
48+ find_dependency (nlohmann_json CONFIG )
49+ endif ()
4750 find_package (libuv CONFIG QUIET )
4851 if (NOT TARGET libuv::uv_a AND NOT TARGET libuv::uv AND NOT TARGET libuv::libuv AND PkgConfig_FOUND)
4952 pkg_check_modules (LIBUV QUIET IMPORTED_TARGET GLOBAL libuv )
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ if(NOT TARGET llhttp_static)
5959endif ()
6060
6161if (@USE_SYSTEM_DEPS@)
62+ if ("json" IN_LIST _icey_supported_components)
63+ find_dependency (nlohmann_json CONFIG )
64+ endif ()
6265 find_dependency (ZLIB )
6366 if ("archo" IN_LIST _icey_supported_components OR "pacm" IN_LIST _icey_supported_components)
6467 find_dependency (unofficial-minizip CONFIG QUIET )
Original file line number Diff line number Diff line change @@ -210,7 +210,9 @@ else()
210210 pkg_check_modules (LIBUV QUIET IMPORTED_TARGET GLOBAL libuv )
211211 endif ()
212212 find_package (llhttp CONFIG QUIET )
213- find_package (nlohmann_json CONFIG REQUIRED )
213+ if (BUILD_MODULES AND (NOT DEFINED BUILD_MODULE_json OR BUILD_MODULE_json))
214+ find_package (nlohmann_json CONFIG REQUIRED )
215+ endif ()
214216 find_package (ZLIB REQUIRED )
215217 if (NOT TARGET llhttp_static
216218 AND NOT TARGET llhttp::llhttp_static
Original file line number Diff line number Diff line change 99 DEPENDS base
1010 PRETTY_NAME JSON
1111 )
12+ target_include_directories (json
13+ PUBLIC
14+ $<BUILD_INTERFACE :${CMAKE_CURRENT_SOURCE_DIR} /vendor >
15+ )
16+ install (DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /vendor/"
17+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} "
18+ COMPONENT dev
19+ )
1220endif ()
File renamed without changes.
You can’t perform that action at this time.
0 commit comments