File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -810,7 +810,7 @@ function(_add_swift_library_single target name)
810
810
endif ()
811
811
endif ()
812
812
813
- if ("${SWIFTLIB_SINGLE_SDK} " STREQUAL "WINDOWS" )
813
+ if ("${SWIFTLIB_SINGLE_SDK} " STREQUAL "WINDOWS" AND NOT " ${CMAKE_SYSTEM_NAME} " STREQUAL "Windows" )
814
814
if ("${libkind} " STREQUAL "SHARED" )
815
815
# Each dll has an associated .lib (import library); since we may be
816
816
# building on a non-DLL platform (not windows), create an imported target
@@ -1141,7 +1141,7 @@ function(_add_swift_library_single target name)
1141
1141
# libraries are only associated with shared libraries, so add an
1142
1142
# additional check for that as well.
1143
1143
set (import_library ${library} )
1144
- if (TARGET ${library} )
1144
+ if (TARGET ${library} AND NOT " ${CMAKE_SYSTEM_NAME} " STREQUAL "Windows" )
1145
1145
get_target_property (type ${library} TYPE )
1146
1146
if (${type} STREQUAL "SHARED_LIBRARY" )
1147
1147
set (import_library ${library} _IMPLIB )
You can’t perform that action at this time.
0 commit comments