Skip to content

Commit b6dd502

Browse files
committed
fix review
1 parent 2060b4d commit b6dd502

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

src/iceberg/catalog/rest/CMakeLists.txt

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,18 @@ set(ICEBERG_REST_SHARED_BUILD_INTERFACE_LIBS)
2222
set(ICEBERG_REST_STATIC_INSTALL_INTERFACE_LIBS)
2323
set(ICEBERG_REST_SHARED_INSTALL_INTERFACE_LIBS)
2424

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)
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)
3529
list(APPEND
3630
ICEBERG_REST_STATIC_INSTALL_INTERFACE_LIBS
3731
"$<IF:$<TARGET_EXISTS:Iceberg::iceberg_static>,Iceberg::iceberg_static,Iceberg::iceberg_shared>"
38-
"$<IF:$<BOOL:${CPR_VENDORED}>,Iceberg::cpr,cpr::cpr>"
39-
"$<IF:$<BOOL:${NLOHMANN_JSON_VENDORED}>,Iceberg::nlohmann_json,nlohmann_json::nlohmann_json>"
40-
)
32+
"$<IF:$<BOOL:${CPR_VENDORED}>,Iceberg::cpr,cpr::cpr>")
4133
list(APPEND
4234
ICEBERG_REST_SHARED_INSTALL_INTERFACE_LIBS
4335
"$<IF:$<TARGET_EXISTS:Iceberg::iceberg_shared>,Iceberg::iceberg_shared,Iceberg::iceberg_static>"
44-
"$<IF:$<BOOL:${CPR_VENDORED}>,Iceberg::cpr,cpr::cpr>"
45-
"$<IF:$<BOOL:${NLOHMANN_JSON_VENDORED}>,Iceberg::nlohmann_json,nlohmann_json::nlohmann_json>"
46-
)
36+
"$<IF:$<BOOL:${CPR_VENDORED}>,Iceberg::cpr,cpr::cpr>")
4737
add_iceberg_lib(iceberg_rest
4838
SOURCES
4939
${ICEBERG_REST_SOURCES}

0 commit comments

Comments
 (0)