We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed6ef79 + 69b4443 commit fca912eCopy full SHA for fca912e
Runtimes/Supplemental/Distributed/CMakeLists.txt
@@ -111,6 +111,13 @@ cmake_policy(GET CMP0157 Policy157Enabled)
111
if(Policy157Enabled STREQUAL NEW)
112
set_target_properties(swiftDistributed PROPERTIES
113
LINKER_LANGUAGE CXX)
114
+ # `CMAKE_STATIC_LIBRARY_PREFIX_Swift` will not impact the prefix for this
115
+ # library because we have changed the linker language to C++. This is required
116
+ # for Windows to properly reference this library.
117
+ if(NOT BUILD_SHARED_LIBS)
118
+ set_target_properties(swiftDistributed PROPERTIES
119
+ PREFIX lib)
120
+ endif()
121
endif()
122
123
target_compile_definitions(swiftDistributed PRIVATE
0 commit comments