File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -2330,31 +2330,28 @@ macro(add_swift_lib_subdirectory name)
2330
2330
endmacro ()
2331
2331
2332
2332
function (add_swift_host_tool executable )
2333
- set (ADDSWIFTHOSTTOOL_multiple_parameter_options
2334
- SWIFT_COMPONENT )
2335
-
2336
- cmake_parse_arguments (
2337
- ADDSWIFTHOSTTOOL # prefix
2338
- "" # options
2339
- "" # single-value args
2340
- "${ADDSWIFTHOSTTOOL_multiple_parameter_options} " # multi-value args
2341
- ${ARGN} )
2333
+ set (options )
2334
+ set ( single_parameter_options SWIFT_COMPONENT )
2335
+ set ( multiple_parameter_options )
2336
+
2337
+ cmake_parse_arguments ( ASHT
2338
+ " ${ options} "
2339
+ " ${single_parameter_options} "
2340
+ "${multiple_parameter_options} "
2341
+ ${ARGN} )
2342
2342
2343
- precondition (ADDSWIFTHOSTTOOL_SWIFT_COMPONENT
2343
+ precondition (ASHT_SWIFT_COMPONENT
2344
2344
MESSAGE "Swift Component is required to add a host tool" )
2345
2345
2346
2346
# Create the executable rule.
2347
- add_swift_executable (
2348
- ${executable}
2349
- ${ADDSWIFTHOSTTOOL_UNPARSED_ARGUMENTS}
2350
- )
2347
+ add_swift_executable (${executable}
2348
+ ${ASHT_UNPARSED_ARGUMENTS} )
2351
2349
2352
- swift_install_in_component (${ADDSWIFTHOSTTOOL_SWIFT_COMPONENT }
2350
+ swift_install_in_component (${ASHT_SWIFT_COMPONENT }
2353
2351
TARGETS ${executable}
2354
2352
RUNTIME DESTINATION bin )
2355
2353
2356
- swift_is_installing_component (${ADDSWIFTHOSTTOOL_SWIFT_COMPONENT}
2357
- is_installing )
2354
+ swift_is_installing_component (${ASHT_SWIFT_COMPONENT} is_installing )
2358
2355
2359
2356
if (NOT is_installing )
2360
2357
set_property (GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${executable} )
You can’t perform that action at this time.
0 commit comments