Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ function(_add_swift_library_single target name)
endif()
endif()

if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "WINDOWS")
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "WINDOWS" AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
if("${libkind}" STREQUAL "SHARED")
# Each dll has an associated .lib (import library); since we may be
# building on a non-DLL platform (not windows), create an imported target
Expand Down Expand Up @@ -1135,7 +1135,7 @@ function(_add_swift_library_single target name)
# libraries are only associated with shared libraries, so add an
# additional check for that as well.
set(import_library ${library})
if(TARGET ${library})
if(TARGET ${library} AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
get_target_property(type ${library} TYPE)
if(${type} STREQUAL "SHARED_LIBRARY")
set(import_library ${library}_IMPLIB)
Expand Down