|
15 | 15 | # specific language governing permissions and limitations |
16 | 16 | # under the License. |
17 | 17 |
|
18 | | -set(ICEBERG_REST_SOURCES rest_catalog.cc) |
| 18 | +set(ICEBERG_REST_SOURCES rest_catalog.cc json_internal.cc) |
19 | 19 |
|
20 | 20 | set(ICEBERG_REST_STATIC_BUILD_INTERFACE_LIBS) |
21 | 21 | set(ICEBERG_REST_SHARED_BUILD_INTERFACE_LIBS) |
22 | 22 | set(ICEBERG_REST_STATIC_INSTALL_INTERFACE_LIBS) |
23 | 23 | set(ICEBERG_REST_SHARED_INSTALL_INTERFACE_LIBS) |
24 | 24 |
|
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) |
29 | 35 | list(APPEND |
30 | 36 | ICEBERG_REST_STATIC_INSTALL_INTERFACE_LIBS |
31 | 37 | "$<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 | +) |
33 | 41 | list(APPEND |
34 | 42 | ICEBERG_REST_SHARED_INSTALL_INTERFACE_LIBS |
35 | 43 | "$<IF:$<TARGET_EXISTS:iceberg::iceberg_shared>,iceberg::iceberg_shared,iceberg::iceberg_static>" |
36 | | - "$<IF:$<BOOL:${CPR_VENDORED}>,iceberg::cpr,cpr::cpr>") |
| 44 | + "$<IF:$<BOOL:${CPR_VENDORED}>,iceberg::cpr,cpr::cpr>" |
| 45 | + "$<IF:$<BOOL:${NLOHMANN_JSON_VENDORED}>,iceberg::nlohmann_json,nlohmann_json::nlohmann_json>" |
| 46 | +) |
37 | 47 |
|
38 | 48 | add_iceberg_lib(iceberg_rest |
39 | 49 | SOURCES |
|
0 commit comments