@@ -1354,7 +1354,6 @@ endfunction()
1354
1354
# [SHARED]
1355
1355
# [STATIC]
1356
1356
# [DEPENDS dep1 ...]
1357
- # [LINK_LIBRARIES dep1 ...]
1358
1357
# [INTERFACE_LINK_LIBRARIES dep1 ...]
1359
1358
# [SWIFT_MODULE_DEPENDS dep1 ...]
1360
1359
# [LLVM_COMPONENT_DEPENDS comp1 ...]
@@ -1377,9 +1376,6 @@ endfunction()
1377
1376
# DEPENDS
1378
1377
# Targets that this library depends on.
1379
1378
#
1380
- # LINK_LIBRARIES
1381
- # Libraries this library depends on.
1382
- #
1383
1379
# LLVM_COMPONENT_DEPENDS
1384
1380
# LLVM components this library depends on.
1385
1381
#
@@ -1419,6 +1415,10 @@ function(add_swift_host_library name)
1419
1415
${ARGN} )
1420
1416
set (ASHL_SOURCES ${ASHL_UNPARSED_ARGUMENTS} )
1421
1417
1418
+ if (ASHL_LINK_LIBRARIES )
1419
+ message (SEND_ERROR "library ${name} is using LINK_LIBRARIES parameter which is deprecated. Please use target_link_libraries instead" )
1420
+ endif ()
1421
+
1422
1422
translate_flags (ASHL "${options} " )
1423
1423
1424
1424
if (NOT ASHL_SHARED AND NOT ASHL_STATIC )
@@ -1435,7 +1435,6 @@ function(add_swift_host_library name)
1435
1435
SDK ${SWIFT_HOST_VARIANT_SDK}
1436
1436
ARCHITECTURE ${SWIFT_HOST_VARIANT_ARCH}
1437
1437
DEPENDS ${ASHL_DEPENDS}
1438
- LINK_LIBRARIES ${ASHL_LINK_LIBRARIES}
1439
1438
LLVM_COMPONENT_DEPENDS ${ASHL_LLVM_COMPONENT_DEPENDS}
1440
1439
FILE_DEPENDS ${ASHL_FILE_DEPENDS}
1441
1440
C_COMPILE_FLAGS ${ASHL_C_COMPILE_FLAGS}
@@ -2249,14 +2248,18 @@ endmacro()
2249
2248
function (add_swift_host_tool executable )
2250
2249
set (options )
2251
2250
set (single_parameter_options SWIFT_COMPONENT )
2252
- set (multiple_parameter_options )
2251
+ set (multiple_parameter_options LINK_LIBRARIES )
2253
2252
2254
2253
cmake_parse_arguments (ASHT
2255
2254
"${options} "
2256
2255
"${single_parameter_options} "
2257
2256
"${multiple_parameter_options} "
2258
2257
${ARGN} )
2259
2258
2259
+ if (ASHT_LINK_LIBRARIES )
2260
+ message (SEND_ERROR "${executable} is using LINK_LIBRARIES parameter which is deprecated. Please use target_link_libraries instead" )
2261
+ endif ()
2262
+
2260
2263
precondition (ASHT_SWIFT_COMPONENT
2261
2264
MESSAGE "Swift Component is required to add a host tool" )
2262
2265
0 commit comments