@@ -22,19 +22,28 @@ set(ICEBERG_REST_SHARED_BUILD_INTERFACE_LIBS)
2222set (ICEBERG_REST_STATIC_INSTALL_INTERFACE_LIBS)
2323set (ICEBERG_REST_SHARED_INSTALL_INTERFACE_LIBS)
2424
25- list (APPEND ICEBERG_REST_STATIC_BUILD_INTERFACE_LIBS
26- "$<IF :$<TARGET_EXISTS :iceberg_static >,iceberg_static ,iceberg_shared >" cpr::cpr)
27- list (APPEND ICEBERG_REST_SHARED_BUILD_INTERFACE_LIBS
28- "$<IF :$<TARGET_EXISTS :iceberg_shared >,iceberg_shared ,iceberg_static >" cpr::cpr)
25+ list (APPEND
26+ ICEBERG_REST_STATIC_BUILD_INTERFACE_LIBS
27+ "$<IF :$<TARGET_EXISTS :iceberg_static >,iceberg_static ,iceberg_shared >"
28+ cpr::cpr
29+ nlohmann_json::nlohmann_json)
30+ list (APPEND
31+ ICEBERG_REST_SHARED_BUILD_INTERFACE_LIBS
32+ "$<IF :$<TARGET_EXISTS :iceberg_shared >,iceberg_shared ,iceberg_static >"
33+ cpr::cpr
34+ nlohmann_json::nlohmann_json)
2935list (APPEND
3036 ICEBERG_REST_STATIC_INSTALL_INTERFACE_LIBS
3137 "$<IF :$<TARGET_EXISTS :Iceberg ::iceberg_static >,Iceberg ::iceberg_static ,Iceberg ::iceberg_shared >"
32- "$<IF :$<BOOL :${CPR_VENDORED} >,Iceberg ::cpr ,cpr ::cpr >" )
38+ "$<IF :$<BOOL :${CPR_VENDORED} >,Iceberg ::cpr ,cpr ::cpr >"
39+ "$<IF :$<BOOL :${NLOHMANN_JSON_VENDORED} >,Iceberg ::nlohmann_json ,nlohmann_json ::nlohmann_json >"
40+ )
3341list (APPEND
3442 ICEBERG_REST_SHARED_INSTALL_INTERFACE_LIBS
3543 "$<IF :$<TARGET_EXISTS :Iceberg ::iceberg_shared >,Iceberg ::iceberg_shared ,Iceberg ::iceberg_static >"
36- "$<IF :$<BOOL :${CPR_VENDORED} >,Iceberg ::cpr ,cpr ::cpr >" )
37-
44+ "$<IF :$<BOOL :${CPR_VENDORED} >,Iceberg ::cpr ,cpr ::cpr >"
45+ "$<IF :$<BOOL :${NLOHMANN_JSON_VENDORED} >,Iceberg ::nlohmann_json ,nlohmann_json ::nlohmann_json >"
46+ )
3847add_iceberg_lib (iceberg_rest
3948 SOURCES
4049 ${ICEBERG_REST_SOURCES}
0 commit comments