@@ -673,7 +673,6 @@ endfunction()
673
673
# Usage:
674
674
# _add_swift_host_library_single(
675
675
# target
676
- # name
677
676
# [SHARED]
678
677
# [STATIC]
679
678
# [SDK sdk]
@@ -683,9 +682,6 @@ endfunction()
683
682
# source1 [source2 source3 ...])
684
683
#
685
684
# target
686
- # Name of the target (e.g., swiftParse-IOS-armv7).
687
- #
688
- # name
689
685
# Name of the library (e.g., swiftParse).
690
686
#
691
687
# SHARED
@@ -708,7 +704,7 @@ endfunction()
708
704
#
709
705
# source1 ...
710
706
# Sources to add into this library
711
- function (_add_swift_host_library_single target name )
707
+ function (_add_swift_host_library_single target )
712
708
set (SWIFTLIB_SINGLE_options
713
709
SHARED
714
710
STATIC )
@@ -804,11 +800,11 @@ function(_add_swift_host_library_single target name)
804
800
# building on a non-DLL platform (not windows), create an imported target
805
801
# for the library which created implicitly by the dll.
806
802
add_custom_command_target (${target} _IMPORT_LIBRARY
807
- OUTPUT "${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /${name } .lib"
803
+ OUTPUT "${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /${target } .lib"
808
804
DEPENDS "${target} " )
809
805
add_library (${target} _IMPLIB SHARED IMPORTED GLOBAL )
810
806
set_property (TARGET "${target} _IMPLIB" PROPERTY
811
- IMPORTED_LOCATION "${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /${name } .lib" )
807
+ IMPORTED_LOCATION "${SWIFTLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} /${target } .lib" )
812
808
add_dependencies (${target} _IMPLIB ${${target}_IMPORT_LIBRARY} )
813
809
endif ()
814
810
set_property (TARGET "${target} " PROPERTY NO_SONAME ON )
@@ -849,7 +845,7 @@ function(_add_swift_host_library_single target name)
849
845
set_target_properties (${target}
850
846
PROPERTIES
851
847
# Library name (without the variant information)
852
- OUTPUT_NAME ${name } )
848
+ OUTPUT_NAME ${target } )
853
849
854
850
# Handle linking and dependencies.
855
851
add_dependencies_multiple_targets (
@@ -1019,7 +1015,6 @@ function(add_swift_host_library name)
1019
1015
endif ()
1020
1016
1021
1017
_add_swift_host_library_single (
1022
- ${name}
1023
1018
${name}
1024
1019
${ASHL_SHARED_keyword}
1025
1020
${ASHL_STATIC_keyword}
0 commit comments