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
7 changes: 7 additions & 0 deletions Runtimes/Supplemental/Distributed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ cmake_policy(GET CMP0157 Policy157Enabled)
if(Policy157Enabled STREQUAL NEW)
set_target_properties(swiftDistributed PROPERTIES
LINKER_LANGUAGE CXX)
# `CMAKE_STATIC_LIBRARY_PREFIX_Swift` will not impact the prefix for this
# library because we have changed the linker language to C++. This is required
# for Windows to properly reference this library.
if(NOT BUILD_SHARED_LIBS)
set_target_properties(swiftDistributed PROPERTIES
PREFIX lib)
endif()
endif()

target_compile_definitions(swiftDistributed PRIVATE
Expand Down